aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorLibravatar Stefan Malzner <stefan@adlk.io>2017-11-04 22:18:44 +0100
committerLibravatar Stefan Malzner <stefan@adlk.io>2017-11-04 22:18:44 +0100
commit22fc742ed6d719372e591975a61669a96ba90407 (patch)
tree01cb849844be875559dddedd60a3241b49803292 /src
parentMerge branch 'master' into develop (diff)
downloadferdium-app-22fc742ed6d719372e591975a61669a96ba90407.tar.gz
ferdium-app-22fc742ed6d719372e591975a61669a96ba90407.tar.zst
ferdium-app-22fc742ed6d719372e591975a61669a96ba90407.zip
Make sure that numeric bages are ints
Diffstat (limited to 'src')
-rw-r--r--src/stores/AppStore.js2
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 });