aboutsummaryrefslogtreecommitdiffstats
path: root/static/service-worker.js
diff options
context:
space:
mode:
authorAdam Soltys <[email protected]>2022-11-09 23:05:09 -0800
committerAdam Soltys <[email protected]>2022-11-09 23:05:09 -0800
commit055aaea3d02995614b044f66c4a72d68385b1463 (patch)
tree084da06fc774a9e875108cabc682dd5a7f764503 /static/service-worker.js
parent64284b65214f049f62c4ac7b123a64a164ecc5bf (diff)
downloadcoinos-ui-055aaea3d02995614b044f66c4a72d68385b1463.tar.gz
coinos-ui-055aaea3d02995614b044f66c4a72d68385b1463.zip
manifest and service worker
Diffstat (limited to 'static/service-worker.js')
-rw-r--r--static/service-worker.js7
1 files changed, 7 insertions, 0 deletions
diff --git a/static/service-worker.js b/static/service-worker.js
new file mode 100644
index 00000000..7952231d
--- /dev/null
+++ b/static/service-worker.js
@@ -0,0 +1,7 @@
+self.addEventListener('fetch', function(event) {
+ event.respondWith(
+ caches.match(event.request).then(function(response) {
+ return response || fetch(event.request);
+ })
+ );
+});