Skip to content
Snippets Groups Projects
Commit 37a0c62c authored by Jean-Baptiste Pasquier's avatar Jean-Baptiste Pasquier
Browse files

fix: sw

parent 7f970ff8
No related branches found
No related tags found
2 merge requests!236Feature/hubl 618,!198Web manifest generation + Core 0.13
Pipeline #8364 passed
const CACHE_NAME = 'hubl-store-dev';
self.addEventListener('install', function (e) {
self.skipWaiting();
e.waitUntil(
caches.open(CACHE_NAME).then(function (cache) {
return cache.addAll([
......@@ -11,7 +12,7 @@ self.addEventListener('install', function (e) {
'/index.html',
'/'
]);
}).then(() => e.skipWaiting())
})
);
});
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment