-
-
Save balajek/4bc4f7750ed34811acd6a14e33fa035c to your computer and use it in GitHub Desktop.
Determine if notifications are permitted 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.getPermissionLevel(function (level) { | |
window.alert("Notification permission: " + level); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment