aboutsummaryrefslogtreecommitdiffstats
path: root/src/webview/badge.ts
diff options
context:
space:
mode:
authorLibravatar Vijay Aravamudhan <vraravam@users.noreply.github.com>2022-04-22 15:04:21 -0500
committerLibravatar GitHub <noreply@github.com>2022-04-22 20:04:21 +0000
commit759d93dc198a3cc8c5265245c0144efa5435682b (patch)
tree53e963a085d3d12af5a2efa2f1ab6f3e5574edc7 /src/webview/badge.ts
parentAdded build scripts for linux, macos and windows to help new contributors get... (diff)
downloadferdium-app-759d93dc198a3cc8c5265245c0144efa5435682b.tar.gz
ferdium-app-759d93dc198a3cc8c5265245c0144efa5435682b.tar.zst
ferdium-app-759d93dc198a3cc8c5265245c0144efa5435682b.zip
Turn off usage of 'debug' npm package using with electron-16 (fixes #17)
Diffstat (limited to 'src/webview/badge.ts')
-rw-r--r--src/webview/badge.ts5
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 @@
1import { ipcRenderer } from 'electron'; 1import { ipcRenderer } from 'electron';
2 2
3const 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
5export class BadgeHandler { 6export 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}