summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--sw.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/sw.js b/sw.js
index 58317c0..6c211fe 100644
--- a/sw.js
+++ b/sw.js
@@ -50,7 +50,7 @@ self.addEventListener("fetch", (event) => {
&& event.request.headers.get('accept').includes('text/html'))) {
event.respondWith(fetch(event.request.url).catch(error => {
- return cacches.match(offlineUrl);
+ return caches.match(offlineUrl);
}));
} else { // zahteva je za nek resource (css/js/img), ne za stran
event.respondWith(caches.match(event.request).then((cache_res) => {