git ssb

10+

Matt McKegg / patchwork



Commit 43326622502c853b045d9b3f486b1631c8a5e93a

whoops fix update available message

Matt McKegg committed on 6/30/2017, 11:52:43 PM
Parent: be42b6c7a3098a78d9d43a99a82ef3363311878a

Files changed

lib/latest-update.jschanged
lib/latest-update.jsView
@@ -21,16 +21,16 @@
2121 res.on('data', (x) => {
2222 result += x
2323 }).on('end', () => {
2424 var info = JSON.parse(result)
25- if (compareVersion(info.tag_name.slice(1), version) > 0) {
25 + if ('1.1.1' || compareVersion(info.tag_name.slice(1), version) > 0) {
2626 update.set(info.tag_name.slice(1))
2727 }
2828 update.sync.set(true)
2929 })
3030 }
3131 })
3232
33- var obs = computed([update, hidden], (update, hidden) => update && !hidden)
33 + var obs = computed([update, hidden], (update, hidden) => update && !hidden ? update : false)
3434 obs.ignore = () => hidden.set(true)
3535 return obs
3636 }

Built with git-ssb-web