Skip to content

Commit

Permalink
fix(board): workaround Chromium service worker bug
Browse files Browse the repository at this point in the history
  • Loading branch information
nikku committed Mar 14, 2021
1 parent 4549a4e commit f6d2022
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions packages/board/src/service-worker.js
Original file line number Diff line number Diff line change
Expand Up @@ -103,6 +103,10 @@ self.addEventListener('activate', function(event) {

self.addEventListener('fetch', function(event) {

if (event.request.cache === 'only-if-cached' && event.request.mode !== 'same-origin') {
return;
}

const { request } = event;

const { url } = request;
Expand Down

0 comments on commit f6d2022

Please sign in to comment.