Created
June 28, 2019 09:59
-
-
Save indreklasn/13fcbc2f07702b58ac963f905c9a0a47 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
Notification.requestPermission(result => { | |
console.log(result) | |
if (result === 'granted') { | |
alert('thanks for giving me permissions') | |
} | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment