aboutsummaryrefslogtreecommitdiffstats
path: root/src/webview/notifications.js
diff options
context:
space:
mode:
authorLibravatar Stefan Malzner <stefan@adlk.io>2018-12-07 22:39:12 +0100
committerLibravatar Stefan Malzner <stefan@adlk.io>2018-12-07 22:39:12 +0100
commit65aaac06beac7f070a3a81adeffb8e1887d9f12b (patch)
treee2b4f452eef8c17198845e7a59c49b4fe28b1823 /src/webview/notifications.js
parentfeat(Service): Add option to change spellchecking language by service (diff)
downloadferdium-app-65aaac06beac7f070a3a81adeffb8e1887d9f12b.tar.gz
ferdium-app-65aaac06beac7f070a3a81adeffb8e1887d9f12b.tar.zst
ferdium-app-65aaac06beac7f070a3a81adeffb8e1887d9f12b.zip
chore(Recipe): Refactor recipe plugin
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();