-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsw.js
More file actions
44 lines (43 loc) · 1.25 KB
/
Copy pathsw.js
File metadata and controls
44 lines (43 loc) · 1.25 KB
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
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
self.addEventListener('install', function(e) {
e.waitUntil(
caches.open('notableapp').then(function(cache) {
return cache.addAll([
'https://notableapp.github.io/',
'https://notableapp.github.io/?openTask=true',
'index.html',
'index.html?openTask=true',
'create.html',
'create.html?edit=true',
'view.html',
'app.js',
'style.css',
'screen/toolbar.jpg',
'screen/Ntmg.jpg',
'app data/ico@max.png',
'app data/ico@192.png',
'app data/ico@384.png',
'app data/ico@512.png',
'app data/Mail.png',
'app data/Sms.png',
'app data/598px-WhatsApp.svg.png',
'app data/1024px-Telegram_logo.svg.png',
'app data/done.png',
'app data/edit.png',
'res/bs.css',
'res/bs.js',
'res/ghmdsindre.css',
'res/sd.js',
'res/share.js',
'res/swalt@codeninja02.js'
]);
})
);
});
self.addEventListener('fetch', function(e) {
console.log(e.request.url);
e.respondWith(
caches.match(e.request).then(function(response) {
return response || fetch(e.request);
})
);
});