mirror of
https://github.com/SuperBFG7/ympd
synced 2024-12-26 02:50:26 +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));
|
||||
}
|
||||
else {
|
||||
var url = event.request.url.replace(/^https?:\/\/[^\/]+/,'');
|
||||
var url = event.request.url.replace(/^https?:\/\/[^\/]+/, '');
|
||||
if (urlsToCache.includes(url)) {
|
||||
event.respondWith(fromCache(event.request));
|
||||
event.waitUntil(update(event.request));
|
||||
console.log('Serve request from cache: ' + url);
|
||||
}
|
||||
}
|
||||
});
|
||||
|
Loading…
Reference in New Issue
Block a user