Remove extension.notification
This commit is contained in:
@@ -11,18 +11,4 @@
|
||||
window.addEventListener('beforeunload', callback);
|
||||
}
|
||||
};
|
||||
|
||||
extension.notification = {
|
||||
update: function(options) {
|
||||
var notification = new Notification(options.title, {
|
||||
body : options.message,
|
||||
icon : options.iconUrl,
|
||||
tag : 'signal'
|
||||
});
|
||||
notification.onclick = function() {
|
||||
Whisper.Notifications.onclick();
|
||||
};
|
||||
}
|
||||
};
|
||||
|
||||
}());
|
||||
|
@@ -74,6 +74,12 @@
|
||||
message : message,
|
||||
iconUrl : iconUrl
|
||||
});
|
||||
var notification = new Notification(title, {
|
||||
body : message,
|
||||
icon : iconUrl,
|
||||
tag : 'signal'
|
||||
});
|
||||
notification.onclick = this.onclick.bind(this);
|
||||
},
|
||||
getSetting: function() {
|
||||
return storage.get('notification-setting') || 'message';
|
||||
|
Reference in New Issue
Block a user