Update service worker on load
This commit is contained in:
parent
11376351df
commit
a575f92ad1
|
@ -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();
|
||||
|
|
Loading…
Reference in New Issue