re-enable sw
This commit is contained in:
parent
0c4c358175
commit
f8763b28a4
34
src/sw.js
34
src/sw.js
@ -5,6 +5,7 @@ self.addEventListener('install', function (e) {
|
|||||||
'/components/hubl-reactivity.js',
|
'/components/hubl-reactivity.js',
|
||||||
'/components/hubl-search-users.js',
|
'/components/hubl-search-users.js',
|
||||||
'/components/hubl-status.js',
|
'/components/hubl-status.js',
|
||||||
|
'/components/sentry.js',
|
||||||
'/fonts/custom-icons.eot',
|
'/fonts/custom-icons.eot',
|
||||||
'/fonts/custom-icons.svg',
|
'/fonts/custom-icons.svg',
|
||||||
'/fonts/custom-icons.ttf',
|
'/fonts/custom-icons.ttf',
|
||||||
@ -33,16 +34,23 @@ self.addEventListener('install', function (e) {
|
|||||||
'/fonts/simple-line-icons.woff2',
|
'/fonts/simple-line-icons.woff2',
|
||||||
'/images/add-user.svg',
|
'/images/add-user.svg',
|
||||||
'/images/alien.svg',
|
'/images/alien.svg',
|
||||||
|
'/images/appointment.svg',
|
||||||
'/images/arrow-down.svg',
|
'/images/arrow-down.svg',
|
||||||
'/images/calendar.svg',
|
'/images/calendar.svg',
|
||||||
'/images/chevron-down.png',
|
'/images/chevron-down.png',
|
||||||
'/images/favicon.png',
|
'/images/favicon.png',
|
||||||
|
'/images/file.svg',
|
||||||
'/images/hubl-icon-192.png',
|
'/images/hubl-icon-192.png',
|
||||||
'/images/hubl-icon-512.png',
|
'/images/hubl-icon-512.png',
|
||||||
'/images/logo.png',
|
'/images/logo.png',
|
||||||
|
'/images/send.png',
|
||||||
|
'/images/vote.svg',
|
||||||
|
'/locales/es.json',
|
||||||
|
'/locales/fr.json',
|
||||||
'/scripts/index.js',
|
'/scripts/index.js',
|
||||||
'/syles/index.css',
|
'/syles/index.css',
|
||||||
'/index.html',
|
'/index.html',
|
||||||
|
'/manifest.webmanifest',
|
||||||
'/'
|
'/'
|
||||||
]);
|
]);
|
||||||
})
|
})
|
||||||
@ -50,17 +58,17 @@ self.addEventListener('install', function (e) {
|
|||||||
});
|
});
|
||||||
|
|
||||||
//TODO: Can't use fetch because of unpkg, e.request is missing a part of the package name "@startinblox/core" become "@startinblox"
|
//TODO: Can't use fetch because of unpkg, e.request is missing a part of the package name "@startinblox/core" become "@startinblox"
|
||||||
// self.addEventListener('fetch', function (e) {
|
self.addEventListener('fetch', function (e) {
|
||||||
// Handle direct loading /xyz/ when server is unjoinable
|
// Handle direct loading /xyz/ when server is unjoinable
|
||||||
// if (e.request.mode === 'navigate') {
|
if (e.request.mode === 'navigate') {
|
||||||
// e.respondWith(caches.match('/'));
|
e.respondWith(caches.match('/'));
|
||||||
// return;
|
return;
|
||||||
// }
|
}
|
||||||
// e.respondWith(
|
e.respondWith(
|
||||||
// fetch(e.request, {
|
fetch(e.request, {
|
||||||
// credentials: 'include'
|
credentials: 'include'
|
||||||
// }).catch(function() {
|
}).catch(function() {
|
||||||
// return caches.match(e.request);
|
return caches.match(e.request);
|
||||||
// })
|
})
|
||||||
// );
|
);
|
||||||
// });
|
});
|
Loading…
Reference in New Issue
Block a user