aboutsummaryrefslogtreecommitdiff
path: root/public/sw.js
diff options
context:
space:
mode:
authorNoah Loomans <noahloomans@gmail.com>2018-12-29 16:58:34 +0100
committerNoah Loomans <noahloomans@gmail.com>2018-12-29 16:58:34 +0100
commit1145c7ef325f1190e89c4684f180a26d3a74128b (patch)
tree311e14b1a4c24d63d4480e14ef8a698bfbb0b9ab /public/sw.js
parentcaeb6bad750ed3d7e26606dca07edc097885d8ce (diff)
Add kiemm version
The kiemm is functionally identical to the rosoterTOS version, but branded differently
Diffstat (limited to 'public/sw.js')
-rw-r--r--public/sw.js29
1 files changed, 0 insertions, 29 deletions
diff --git a/public/sw.js b/public/sw.js
deleted file mode 100644
index bd43805..0000000
--- a/public/sw.js
+++ /dev/null
@@ -1,29 +0,0 @@
-/* global importScripts toolbox self */
-
-(global => {
- 'use strict'
-
- // Load the sw-toolbox library.
- importScripts('/components/sw-toolbox/sw-toolbox.js')
-
- // Ensure that our service worker takes control of the page as soon as possible.
- global.addEventListener('install', event => event.waitUntil(global.skipWaiting()))
- global.addEventListener('activate', event => event.waitUntil(global.clients.claim()))
-
- toolbox.precache([
- '/',
- '/hello',
- '/untisinfo.css',
- '/javascripts/bundle.js',
- '/stylesheets/style.css',
- '/stylesheets/hello.css'
- ])
-
- toolbox.router.get('/', toolbox.fastest)
- toolbox.router.get('/hello', toolbox.fastest)
-
- toolbox.router.get('/javascripts/bundle.js', toolbox.fastest)
- toolbox.router.get('/stylesheets/*', toolbox.fastest)
- toolbox.router.get('/untisinfo.css', toolbox.fastest)
- toolbox.router.get('/meetingpointProxy/*', toolbox.networkFirst)
-})(self)