diff options
author | Razvan Spatariu <razvanspatariu@gmail.com> | 2017-12-07 14:47:24 +0000 |
---|---|---|
committer | Razvan Spatariu <razvanspatariu@gmail.com> | 2017-12-07 14:47:24 +0000 |
commit | cf0f29e49763ee8748ccc2a255bf5b60c3041d7f (patch) | |
tree | 774641b7bd94e149995aa123e0a20db870bdc75d /src/webview/lib | |
parent | Merge pull request #330 from meetfranz/develop (diff) | |
download | ferdium-app-cf0f29e49763ee8748ccc2a255bf5b60c3041d7f.tar.gz ferdium-app-cf0f29e49763ee8748ccc2a255bf5b60c3041d7f.tar.zst ferdium-app-cf0f29e49763ee8748ccc2a255bf5b60c3041d7f.zip |
Fix bug that allows negative badge notifications
Diffstat (limited to 'src/webview/lib')
-rw-r--r-- | src/webview/lib/RecipeWebview.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/webview/lib/RecipeWebview.js b/src/webview/lib/RecipeWebview.js index 048beea69..be29142af 100644 --- a/src/webview/lib/RecipeWebview.js +++ b/src/webview/lib/RecipeWebview.js | |||
@@ -40,8 +40,8 @@ class RecipeWebview { | |||
40 | && this.countCache.indirect === indirect) return; | 40 | && this.countCache.indirect === indirect) return; |
41 | 41 | ||
42 | const count = { | 42 | const count = { |
43 | direct, | 43 | direct: direct > 0 ? direct : 0, |
44 | indirect, | 44 | indirect: indirect > 0 ? indirect : 0, |
45 | }; | 45 | }; |
46 | 46 | ||
47 | ipcRenderer.sendToHost('messages', count); | 47 | ipcRenderer.sendToHost('messages', count); |