aboutsummaryrefslogtreecommitdiffstats
path: root/src/webview/notifications.js
diff options
context:
space:
mode:
Diffstat (limited to 'src/webview/notifications.js')
-rw-r--r--src/webview/notifications.js7
1 files changed, 5 insertions, 2 deletions
diff --git a/src/webview/notifications.js b/src/webview/notifications.js
index 2020bbdc6..f8fe53e1b 100644
--- a/src/webview/notifications.js
+++ b/src/webview/notifications.js
@@ -1,10 +1,13 @@
1const { ipcRenderer } = require('electron'); 1import { ipcRenderer } from 'electron';
2const uuidV1 = require('uuid/v1'); 2import uuidV1 from 'uuid/v1';
3
4const debug = require('debug')('Franz:Notifications');
3 5
4class Notification { 6class Notification {
5 static permission = 'granted'; 7 static permission = 'granted';
6 8
7 constructor(title = '', options = {}) { 9 constructor(title = '', options = {}) {
10 debug('New notification', title, options);
8 this.title = title; 11 this.title = title;
9 this.options = options; 12 this.options = options;
10 this.notificationId = uuidV1(); 13 this.notificationId = uuidV1();