Commit 43326622502c853b045d9b3f486b1631c8a5e93a
whoops fix update available message
Matt McKegg committed on 6/30/2017, 11:52:43 PMParent: be42b6c7a3098a78d9d43a99a82ef3363311878a
Files changed
lib/latest-update.js | changed |
lib/latest-update.js | ||
---|---|---|
@@ -21,16 +21,16 @@ | ||
21 | 21 | res.on('data', (x) => { |
22 | 22 | result += x |
23 | 23 | }).on('end', () => { |
24 | 24 | 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) { | |
26 | 26 | update.set(info.tag_name.slice(1)) |
27 | 27 | } |
28 | 28 | update.sync.set(true) |
29 | 29 | }) |
30 | 30 | } |
31 | 31 | }) |
32 | 32 | |
33 | - var obs = computed([update, hidden], (update, hidden) => update && !hidden) | |
33 | + var obs = computed([update, hidden], (update, hidden) => update && !hidden ? update : false) | |
34 | 34 | obs.ignore = () => hidden.set(true) |
35 | 35 | return obs |
36 | 36 | } |
Built with git-ssb-web