diff options
-rw-r--r-- | sw.js | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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) => { |