fix broken service worker

This commit is contained in:
Alberto Xamin 2021-05-22 16:25:28 +02:00
parent 2ee0eabc72
commit 50b6269b35
No known key found for this signature in database
GPG Key ID: 4F026F48309500A2

View File

@ -1,5 +1,5 @@
import { Workbox } from 'workbox-window';
if ('serviceWorker' in navigator) {
const { Workbox } = new Workbox('service-worker.js');
const wb = new Workbox('/service-worker.js');
wb.addEventListener('activated', event => {