From 759d93dc198a3cc8c5265245c0144efa5435682b Mon Sep 17 00:00:00 2001 From: Vijay Aravamudhan Date: Fri, 22 Apr 2022 15:04:21 -0500 Subject: Turn off usage of 'debug' npm package using with electron-16 (fixes #17) --- src/webview/notifications.ts | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'src/webview/notifications.ts') diff --git a/src/webview/notifications.ts b/src/webview/notifications.ts index 5ae99424c..ff9c844d0 100644 --- a/src/webview/notifications.ts +++ b/src/webview/notifications.ts @@ -2,7 +2,8 @@ import { ipcRenderer } from 'electron'; import { v1 as uuidV1 } from 'uuid'; -const debug = require('debug')('Ferdium:Notifications'); +// TODO: Go back to 'debug' from 'console.log' when https://github.com/electron/electron/issues/31689 is fixed +// const debug = require('debug')('Ferdium:Notifications'); export class NotificationsHandler { onNotify = (data: { title: string; options: any; notificationId: string }) => @@ -10,7 +11,7 @@ export class NotificationsHandler { displayNotification(title: string, options: any) { return new Promise(resolve => { - debug('New notification', title, options); + console.log('New notification', title, options); const notificationId = uuidV1(); -- cgit v1.2.3-70-g09d2