deep-copy update private and public fields
This commit is contained in:
+6
-4
@@ -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) => {
|
||||
|
||||
Reference in New Issue
Block a user