Skip to content

Instantly share code, notes, and snippets.

@TylerLeonhardt
Created May 27, 2016 06:12
Show Gist options
  • Save TylerLeonhardt/de22d9240d050f43fb187ca75cf89ffb to your computer and use it in GitHub Desktop.
Save TylerLeonhardt/de22d9240d050f43fb187ca75cf89ffb to your computer and use it in GitHub Desktop.
Script tag at the bottom of app/index.html
<script>
// Register service worker if supported.
if ('serviceWorker' in navigator) {
navigator.serviceWorker.register('/service-worker.js');
}
</script>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment