changeset 399: |
7963217e1d39 |
author: |
Richard Westhaver <ellis@rwest.io> |
date: |
Sun, 02 Jun 2024 21:58:22 -0400 |
permissions: |
-rw-r--r-- |
description: |
init alik ui |
1 var cacheName = 'alik-pwa'; 9 /* Start the service worker and cache all of the app's content */ 10 self.addEventListener('install', function (e) { 12 caches.open(cacheName).then(function (cache) { 13 return cache.addAll(filesToCache); 18 /* Serve cached content when offline */ 19 self.addEventListener('fetch', function (e) { 21 caches.match(e.request).then(function (response) { 22 return response || fetch(e.request);