Merge pull request #294 from yuya-oc/fix-notification-shim
Fix Notification shim not working when clicking
This commit is contained in:
commit
8dd5179d9d
|
@ -52,7 +52,7 @@ function override(eventHandlers) {
|
||||||
defineReadProperty(event);
|
defineReadProperty(event);
|
||||||
Notification.prototype.__defineSetter__(event, function(originalCallback) {
|
Notification.prototype.__defineSetter__(event, function(originalCallback) {
|
||||||
this.notification[event] = function() {
|
this.notification[event] = function() {
|
||||||
callbackevent = {
|
const callbackevent = {
|
||||||
preventDefault: function() {
|
preventDefault: function() {
|
||||||
this.isPrevented = true;
|
this.isPrevented = true;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue