Skip to content
Permalink
Browse files

Fix application of onNotify

  • Loading branch information
dannyqiu committed Nov 14, 2017
1 parent 3c54aa3 commit b15421b0597fa40d961db2e102d6b54059196b27
Showing with 3 additions and 3 deletions.
  1. +1 −1 src/webview/lib/RecipeWebview.js
  2. +2 −2 src/webview/notifications.js
@@ -66,7 +66,7 @@ class RecipeWebview {

onNotify(fn) {
if (typeof fn === 'function') {
window.Notification.onNotify = fn;
window.Notification.prototype.onNotify = fn;
}
}

@@ -10,9 +10,9 @@ class Notification {
this.notificationId = uuidV1();

ipcRenderer.sendToHost('notification', this.onNotify({
title: this.title,
options: this.options,
notificationId: this.notificationId,
title,
options,
}));

ipcRenderer.once(`notification-onclick:${this.notificationId}`, () => {

0 comments on commit b15421b

Please sign in to comment.