diff options
Diffstat (limited to 'src/webview/notifications.ts')
-rw-r--r-- | src/webview/notifications.ts | 5 |
1 files changed, 3 insertions, 2 deletions
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'; | |||
2 | 2 | ||
3 | import { v1 as uuidV1 } from 'uuid'; | 3 | import { v1 as uuidV1 } from 'uuid'; |
4 | 4 | ||
5 | const debug = require('debug')('Ferdium:Notifications'); | 5 | // TODO: Go back to 'debug' from 'console.log' when https://github.com/electron/electron/issues/31689 is fixed |
6 | // const debug = require('debug')('Ferdium:Notifications'); | ||
6 | 7 | ||
7 | export class NotificationsHandler { | 8 | export class NotificationsHandler { |
8 | onNotify = (data: { title: string; options: any; notificationId: string }) => | 9 | onNotify = (data: { title: string; options: any; notificationId: string }) => |
@@ -10,7 +11,7 @@ export class NotificationsHandler { | |||
10 | 11 | ||
11 | displayNotification(title: string, options: any) { | 12 | displayNotification(title: string, options: any) { |
12 | return new Promise(resolve => { | 13 | return new Promise(resolve => { |
13 | debug('New notification', title, options); | 14 | console.log('New notification', title, options); |
14 | 15 | ||
15 | const notificationId = uuidV1(); | 16 | const notificationId = uuidV1(); |
16 | 17 | ||