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