aboutsummaryrefslogtreecommitdiff
path: root/assets/sw.js
diff options
context:
space:
mode:
Diffstat (limited to 'assets/sw.js')
-rw-r--r--assets/sw.js16
1 files changed, 16 insertions, 0 deletions
diff --git a/assets/sw.js b/assets/sw.js
index e69de29..8f285e9 100644
--- a/assets/sw.js
+++ b/assets/sw.js
@@ -0,0 +1,16 @@
1importScripts('/assets/cache-polyfill.js');
2
3
4self.addEventListener('install', function (e) {
5 e.waitUntil(
6 caches.open('airhorner').then(function (cache) {
7 return cache.addAll([
8 '/',
9 '/index.html',
10 '/index.html?homescreen=1',
11 '/?homescreen=1',
12 '/assets/site.css',
13 ]);
14 })
15 );
16});