Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
// check for support
if ('serviceWorker' in navigator) {
try {
// calls navigator.serviceWorker.register('sw.js');
registerServiceWorker();
} catch (e) {
console.error(e);
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.