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