Last active
January 5, 2017 16:22
-
-
Save g8d3/136c1b6381ac8f874c7084bf402b957c to your computer and use it in GitHub Desktop.
qwe
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
navigator.serviceWorker.register('https://gist.githubusercontent.com/juanpastas/136c1b6381ac8f874c7084bf402b957c/raw/be873a06c05d00a17efb2b517e95d7341559e862/a.js'); | |
Notification.requestPermission(function(result) { | |
if (result === 'granted') { | |
navigator.serviceWorker.ready.then(function(registration) { | |
registration.showNotification('Notification with ServiceWorker'); | |
}); | |
} | |
}); |
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
//empty |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment