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