mirror of
https://github.com/SuperBFG7/ympd
synced 2024-11-05 22:36:16 +00:00
fix: remove console debug logging
This commit is contained in:
parent
b9064767a1
commit
7fc18e4a65
@ -29,11 +29,10 @@ self.addEventListener('fetch', function(event) {
|
|||||||
event.respondWith(fromCache(event.request));
|
event.respondWith(fromCache(event.request));
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
var url = event.request.url.replace(/^https?:\/\/[^\/]+/,'');
|
var url = event.request.url.replace(/^https?:\/\/[^\/]+/, '');
|
||||||
if (urlsToCache.includes(url)) {
|
if (urlsToCache.includes(url)) {
|
||||||
event.respondWith(fromCache(event.request));
|
event.respondWith(fromCache(event.request));
|
||||||
event.waitUntil(update(event.request));
|
event.waitUntil(update(event.request));
|
||||||
console.log('Serve request from cache: ' + url);
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
Loading…
Reference in New Issue
Block a user