diff options
author | sijanec <sijanecantonluka@gmail.com> | 2020-08-31 00:30:08 +0200 |
---|---|---|
committer | sijanec <sijanecantonluka@gmail.com> | 2020-08-31 00:30:08 +0200 |
commit | d8c7ab7f2153222fa1067f087dcd734f957f0d2b (patch) | |
tree | 54493696e13d713c3a81024dfcd70c13e1ef23be | |
parent | swž (diff) | |
download | ttx-app-d8c7ab7f2153222fa1067f087dcd734f957f0d2b.tar ttx-app-d8c7ab7f2153222fa1067f087dcd734f957f0d2b.tar.gz ttx-app-d8c7ab7f2153222fa1067f087dcd734f957f0d2b.tar.bz2 ttx-app-d8c7ab7f2153222fa1067f087dcd734f957f0d2b.tar.lz ttx-app-d8c7ab7f2153222fa1067f087dcd734f957f0d2b.tar.xz ttx-app-d8c7ab7f2153222fa1067f087dcd734f957f0d2b.tar.zst ttx-app-d8c7ab7f2153222fa1067f087dcd734f957f0d2b.zip |
-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) => { |