aboutsummaryrefslogtreecommitdiffstats
path: root/src/webview/notifications.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/notifications.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/notifications.ts')
-rw-r--r--src/webview/notifications.ts5
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
3import { v1 as uuidV1 } from 'uuid'; 3import { v1 as uuidV1 } from 'uuid';
4 4
5const 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
7export class NotificationsHandler { 8export 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