aboutsummaryrefslogtreecommitdiffstats
path: root/src/webview/notifications.js
diff options
context:
space:
mode:
authorLibravatar Danny Qiu <dqiu55@gmail.com>2017-12-28 08:13:34 -0500
committerLibravatar Danny Qiu <dqiu55@gmail.com>2017-12-28 11:12:12 -0500
commita991a961f624219b393fbae116cc0343bdb5e799 (patch)
treebc71e6782aa12b3c227c7e25a9c881046b2a40ff /src/webview/notifications.js
parentLog event on second instnace of Franz (diff)
downloadferdium-app-a991a961f624219b393fbae116cc0343bdb5e799.tar.gz
ferdium-app-a991a961f624219b393fbae116cc0343bdb5e799.tar.zst
ferdium-app-a991a961f624219b393fbae116cc0343bdb5e799.zip
Check that notification onclick is a function before calling
Diffstat (limited to 'src/webview/notifications.js')
-rw-r--r--src/webview/notifications.js4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/webview/notifications.js b/src/webview/notifications.js
index 4f602bfdb..2020bbdc6 100644
--- a/src/webview/notifications.js
+++ b/src/webview/notifications.js
@@ -16,7 +16,9 @@ class Notification {
16 })); 16 }));
17 17
18 ipcRenderer.once(`notification-onclick:${this.notificationId}`, () => { 18 ipcRenderer.once(`notification-onclick:${this.notificationId}`, () => {
19 this.onclick(); 19 if (typeof this.onclick === 'function') {
20 this.onclick();
21 }
20 }); 22 });
21 } 23 }
22 24