Created
July 31, 2019 18:39
-
-
Save FezVrasta/b48a8e3c0177ee1ff75efa39cb6679ef to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
serviceWorker.register({ | |
onUpdate: registration => { | |
setWaitingServiceWorker(registration.waiting); | |
setUpdateAvailable(true); | |
}, | |
onWaiting: waiting => { | |
setWaitingServiceWorker(waiting); | |
setUpdateAvailable(true); | |
} | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment