implementing chat archiving (does not work yet)

This commit is contained in:
or-else
2019-02-02 21:31:58 +03:00
parent 6388fedd70
commit 541ead2136
14 changed files with 145 additions and 81 deletions
-1
View File
@@ -69,7 +69,6 @@ self.addEventListener('notificationclick', function(event) {
// This is needed for 'Add to Home Screen'.
self.addEventListener('fetch', function(event) {
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;