From a1b7371c43fde3bb28f3a7d6aef211f262482a7f Mon Sep 17 00:00:00 2001 From: Yuya Ochiai Date: Tue, 20 Sep 2016 00:01:35 +0900 Subject: [PATCH] Fix Notification shim not working when clicking Probably this was caused by upgrading Electron --- src/browser/js/notification.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/browser/js/notification.js b/src/browser/js/notification.js index e2ab532a..8ce3a23c 100644 --- a/src/browser/js/notification.js +++ b/src/browser/js/notification.js @@ -52,7 +52,7 @@ function override(eventHandlers) { defineReadProperty(event); Notification.prototype.__defineSetter__(event, function(originalCallback) { this.notification[event] = function() { - callbackevent = { + const callbackevent = { preventDefault: function() { this.isPrevented = true; }