Commit 1dbd43a0028f966bbda4aefac6ac37088dd99da9
simplify down badge counter
Matt McKegg authored on 8/8/2017, 12:32:27 AMGitHub committed on 8/8/2017, 12:32:27 AM
Parent: f3f7d76efbd67bb3ecc2b0899e453b39bb95f599
Files changed
main-window.js | changed |
main-window.js | ||
---|---|---|
@@ -58,13 +58,9 @@ | ||
58 | 58 … | var views = api.app.views(api.page.html.render, [ |
59 | 59 … | '/public', '/private', id, '/mentions' |
60 | 60 … | ]) |
61 | 61 … | |
62 | - var pendingCount = computed([ | |
63 | - views.get('/mentions').pendingUpdates | |
64 | - ], (...counts) => { | |
65 | - return counts.reduce((a, b) => a + b) | |
66 | - }) | |
62 … | + var pendingCount = views.get('/mentions').pendingUpdates | |
67 | 63 … | |
68 | 64 … | watch(pendingCount, count => { |
69 | 65 … | electron.remote.app.setBadgeCount(count) |
70 | 66 … | }) |
Built with git-ssb-web