-
-
Save balajek/5dc3062eedd3f5c9629c4dbc948d1906 to your computer and use it in GitHub Desktop.
Event raised when notification permission is changed by user
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
browser.notifications.onPermissionLevelChanged.addListener(function (level) { | |
window.alert("Notification permission " + ((String(level) == "granted") ? "granted" : "denied")); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment