You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

14 lines
462 B

  1. // NOTE: This currently doesn't cache anything
  2. // We are just installing it so that chrome users can be
  3. // prompted to install Quill via add to homescreen
  4. self.addEventListener("install", installWorker);
  5. async function installWorker() {
  6. await self.skipWaiting();
  7. }
  8. self.addEventListener("activate", activateServiceWorker);
  9. async function activateServiceWorker(event) {
  10. event.waitUntil(clients.claim()); // make the current sw the active sw in all pages
  11. }