aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorLibravatar Stefan Malzner <stefan@adlk.io>2017-11-15 11:10:05 +0100
committerLibravatar GitHub <noreply@github.com>2017-11-15 11:10:05 +0100
commit9e658c99aaf7710a8b3f98194755bf98ee520171 (patch)
tree055e75c25a9a966c677e88e7206b6ad1abaa6dde /src
parentReplace miner (diff)
parentfix(Notifications): Fix notification data transformers (@dannyqiu) (diff)
downloadferdium-app-9e658c99aaf7710a8b3f98194755bf98ee520171.tar.gz
ferdium-app-9e658c99aaf7710a8b3f98194755bf98ee520171.tar.zst
ferdium-app-9e658c99aaf7710a8b3f98194755bf98ee520171.zip
Merge branch 'develop' into feature/pricing-info
Diffstat (limited to 'src')
-rw-r--r--src/webview/lib/RecipeWebview.js2
-rw-r--r--src/webview/notifications.js4
2 files changed, 3 insertions, 3 deletions
diff --git a/src/webview/lib/RecipeWebview.js b/src/webview/lib/RecipeWebview.js
index b8acc1258..048beea69 100644
--- a/src/webview/lib/RecipeWebview.js
+++ b/src/webview/lib/RecipeWebview.js
@@ -66,7 +66,7 @@ class RecipeWebview {
66 66
67 onNotify(fn) { 67 onNotify(fn) {
68 if (typeof fn === 'function') { 68 if (typeof fn === 'function') {
69 window.Notification.onNotify = fn; 69 window.Notification.prototype.onNotify = fn;
70 } 70 }
71 } 71 }
72 72
diff --git a/src/webview/notifications.js b/src/webview/notifications.js
index 4055b10de..4f602bfdb 100644
--- a/src/webview/notifications.js
+++ b/src/webview/notifications.js
@@ -10,9 +10,9 @@ class Notification {
10 this.notificationId = uuidV1(); 10 this.notificationId = uuidV1();
11 11
12 ipcRenderer.sendToHost('notification', this.onNotify({ 12 ipcRenderer.sendToHost('notification', this.onNotify({
13 title: this.title,
14 options: this.options,
13 notificationId: this.notificationId, 15 notificationId: this.notificationId,
14 title,
15 options,
16 })); 16 }));
17 17
18 ipcRenderer.once(`notification-onclick:${this.notificationId}`, () => { 18 ipcRenderer.once(`notification-onclick:${this.notificationId}`, () => {