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
|
// check for updates every 2 hours
|
||||||
var checkInterval = 1000 * 60 * 60 * 2
|
var checkInterval = 1000 * 60 * 60 * 2
|
||||||
// var checkInterval = 1000 * 5
|
// var checkInterval = 1000 * 5
|
||||||
|
registration.update();
|
||||||
setInterval(() => {
|
setInterval(() => {
|
||||||
console.log('Checking for service worker update…')
|
console.log('Checking for service worker update…')
|
||||||
registration.update();
|
registration.update();
|
||||||
|
|
Loading…
Reference in New Issue