This commit is contained in:
thuhole
2020-06-20 13:26:18 +08:00
parent 31b051f7d6
commit 900cce4b16

View File

@@ -54,9 +54,7 @@ export default function register() {
function registerValidSW(swUrl) {
navigator.serviceWorker
.register(swUrl, {
scope: '/static/'
})
.register(swUrl)
.then(registration => {
registration.onupdatefound = () => {
const installingWorker = registration.installing;