deep-copy update private and public fields

This commit is contained in:
or-else
2019-02-01 18:37:07 +03:00
parent f34c342db3
commit 6388fedd70
9 changed files with 1688 additions and 2974 deletions
+6 -4
View File
@@ -69,10 +69,12 @@ self.addEventListener('notificationclick', function(event) {
// This is needed for 'Add to Home Screen'.
self.addEventListener('fetch', function(event) {
if (event.request.cache === 'only-if-cached' && event.request.mode !== 'same-origin') {
return;
}
event.respondWith(
console.log("Fetch event", event.request);
// Workaround for https://bugs.chromium.org/p/chromium/issues/detail?id=823392
if (event.request.cache == 'only-if-cached' && event.request.mode != 'same-origin') {
return;
}
event.respondWith(
// Try to find response in cache.
caches.match(event.request)
.then((resp) => {