aboutsummaryrefslogtreecommitdiffhomepage
path: root/sw.js
diff options
context:
space:
mode:
Diffstat (limited to 'sw.js')
-rw-r--r--sw.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/sw.js b/sw.js
index cf1c5be..945829d 100644
--- a/sw.js
+++ b/sw.js
@@ -33,7 +33,7 @@ self.addEventListener('install', async function () {
const cache = await caches.open('Orca')
assets.forEach(function (asset) {
cache.add(asset).catch(function () {
- console.error('[SW] Cound\'t cache:', asset)
+ console.error('serviceWorker','Cound not cache:', asset)
})
})
})
@@ -46,7 +46,7 @@ self.addEventListener('fetch', async function (event) {
async function cacheFirst (request) {
const cachedResponse = await caches.match(request)
if (cachedResponse === undefined) {
- console.error('[SW] Not cached:', request.url)
+ console.error('serviceWorker','Not cached:', request.url)
return fetch(request)
}
return cachedResponse