• index.js

  • Register the ServiceWorker

    navigator.serviceWorker.register('service-worker.js', {
      scope: '.'
    }).then(function(registration) {
      console.log('The service worker has been registered ', registration);
    });

Has it been useful?

Tell us what you think of this recipe by leaving a comment!