Last active
May 25, 2018 15:46
-
-
Save sebholstein/6f619a9cdf21ea4e9f9318550fb17821 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
if ('Notification' in window) { | |
Notification.requestPermission().then(status => { | |
// status can be 'granted' or 'denied' | |
// code to handle the result here... | |
}); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment