Fix Notification shim not working when clicking

Probably this was caused by upgrading Electron
This commit is contained in:
Yuya Ochiai
2016-09-20 00:01:35 +09:00
parent a12ec194ad
commit a1b7371c43

View File

@@ -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;
}