1
0
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:
jcorporation 2018-07-25 23:40:06 +01:00
parent b9064767a1
commit 7fc18e4a65

View File

@ -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);
}
}
});