diff options
author | Stefan Malzner <stefan@adlk.io> | 2017-11-04 22:18:44 +0100 |
---|---|---|
committer | Stefan Malzner <stefan@adlk.io> | 2017-11-04 22:18:44 +0100 |
commit | 22fc742ed6d719372e591975a61669a96ba90407 (patch) | |
tree | 01cb849844be875559dddedd60a3241b49803292 | |
parent | Merge branch 'master' into develop (diff) | |
download | ferdium-app-22fc742ed6d719372e591975a61669a96ba90407.tar.gz ferdium-app-22fc742ed6d719372e591975a61669a96ba90407.tar.zst ferdium-app-22fc742ed6d719372e591975a61669a96ba90407.zip |
Make sure that numeric bages are ints
-rw-r--r-- | src/stores/AppStore.js | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/stores/AppStore.js b/src/stores/AppStore.js index d8ef66a92..ecfd621d3 100644 --- a/src/stores/AppStore.js +++ b/src/stores/AppStore.js | |||
@@ -156,6 +156,8 @@ export default class AppStore extends Store { | |||
156 | indicator = '•'; | 156 | indicator = '•'; |
157 | } else if (unreadDirectMessageCount === 0 && unreadIndirectMessageCount === 0) { | 157 | } else if (unreadDirectMessageCount === 0 && unreadIndirectMessageCount === 0) { |
158 | indicator = 0; | 158 | indicator = 0; |
159 | } else { | ||
160 | indicator = parseInt(indicator, 10); | ||
159 | } | 161 | } |
160 | 162 | ||
161 | ipcRenderer.send('updateAppIndicator', { indicator }); | 163 | ipcRenderer.send('updateAppIndicator', { indicator }); |