diff options
author | 2017-12-28 08:13:34 -0500 | |
---|---|---|
committer | 2017-12-28 11:12:12 -0500 | |
commit | a991a961f624219b393fbae116cc0343bdb5e799 (patch) | |
tree | bc71e6782aa12b3c227c7e25a9c881046b2a40ff /src/webview | |
parent | Log event on second instnace of Franz (diff) | |
download | ferdium-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')
-rw-r--r-- | src/webview/notifications.js | 4 |
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 | ||