Skip to content

Instantly share code, notes, and snippets.

@petebrowne
Last active February 19, 2016 22:28
Show Gist options
  • Save petebrowne/6901220138a90d0b9a6b to your computer and use it in GitHub Desktop.
Save petebrowne/6901220138a90d0b9a6b to your computer and use it in GitHub Desktop.
navigator.serviceWorker.register('service-worker.js').then(function(registration) {
console.log('registered!', registration)
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment