Skip to content
Snippets Groups Projects
Verified Commit a575f92a authored by Eliot Berriot's avatar Eliot Berriot
Browse files

Update service worker on load

parent 11376351
No related branches found
No related tags found
No related merge requests found
......@@ -16,6 +16,7 @@ if (process.env.NODE_ENV === 'production') {
// check for updates every 2 hours
var checkInterval = 1000 * 60 * 60 * 2
// var checkInterval = 1000 * 5
registration.update();
setInterval(() => {
console.log('Checking for service worker update…')
registration.update();
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment