-
-
Notifications
You must be signed in to change notification settings - Fork 151
Expand file tree
/
Copy pathserviceWorker.js
More file actions
28 lines (26 loc) · 771 Bytes
/
serviceWorker.js
File metadata and controls
28 lines (26 loc) · 771 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
"use strict";
self.addEventListener( "install", e => {
e.waitUntil( caches.open( "daw" ).then( cache =>
cache.addAll( [
"/",
"/index.html",
"/manifest.json",
"/assets/ico.svg",
"/assets/logo/gs-gs-logo.svg",
"/assets/logo/gs-gridsound-logo-animated.svg",
"/assets/gsuiLibrarySamples-v1.js",
"/assets/gswaPeriodicWavesList-v1.js",
"/assets/fonts/fa-brands-400.woff2",
"/assets/fonts/fa-duotone-900.woff2",
"/assets/fonts/unica-one-400-latin.woff2",
"/assets/fonts/montserrat-500-latin.woff2",
"/assets/fonts/montserrat-700-latin.woff2",
"/assets/fonts/inconsolata-400-latin.woff2",
] )
) );
} );
self.addEventListener( "fetch", e => {
e.respondWith(
fetch( e.request ).catch( () => caches.match( e.request ) )
);
} );