Merge pull request #294 from yuya-oc/fix-notification-shim
Fix Notification shim not working when clicking
This commit is contained in:
@@ -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;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user