Skip to content
Snippets Groups Projects
Verified Commit d03ac424 authored by Hangzhi Yu's avatar Hangzhi Yu Committed by Nik | Klampfradler
Browse files

Fix precaching of offline fallback page

parent 01d5b7f7
No related branches found
No related tags found
1 merge request!336Resolve "Review and fix/improve PWA behaviour and serviceworker"
Pipeline #4910 passed
...@@ -31,7 +31,7 @@ self.addEventListener("install", function (event) { ...@@ -31,7 +31,7 @@ self.addEventListener("install", function (event) {
event.waitUntil( event.waitUntil(
caches.open(CACHE).then(function (cache) { caches.open(CACHE).then(function (cache) {
console.log("[AlekSIS PWA] Caching pages during install."); console.log("[AlekSIS PWA] Caching pages during install.");
return cache.addAll(precachePaths); return cache.add(offlineFallbackPage);
}) })
); );
}); });
......
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