diff options
Diffstat (limited to 'src/webview/badge.ts')
-rw-r--r-- | src/webview/badge.ts | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/webview/badge.ts b/src/webview/badge.ts index 1b66effb6..0ff1ecaf6 100644 --- a/src/webview/badge.ts +++ b/src/webview/badge.ts | |||
@@ -1,6 +1,7 @@ | |||
1 | import { ipcRenderer } from 'electron'; | 1 | import { ipcRenderer } from 'electron'; |
2 | 2 | ||
3 | const debug = require('debug')('Ferdium:Plugin:BadgeHandler'); | 3 | // TODO: Go back to 'debug' from 'console.log' when https://github.com/electron/electron/issues/31689 is fixed |
4 | // const debug = require('debug')('Ferdium:Plugin:BadgeHandler'); | ||
4 | 5 | ||
5 | export class BadgeHandler { | 6 | export class BadgeHandler { |
6 | // TODO: Need to extract this into a utility class and reuse outside of the recipes | 7 | // TODO: Need to extract this into a utility class and reuse outside of the recipes |
@@ -26,7 +27,7 @@ export class BadgeHandler { | |||
26 | indirect: this.safeParseInt(indirect), | 27 | indirect: this.safeParseInt(indirect), |
27 | }; | 28 | }; |
28 | 29 | ||
29 | debug('Sending badge count to host: %j', count); | 30 | console.log('Sending badge count to host: %j', count); |
30 | ipcRenderer.sendToHost('message-counts', count); | 31 | ipcRenderer.sendToHost('message-counts', count); |
31 | } | 32 | } |
32 | } | 33 | } |