|
|
@ -17,10 +17,14 @@ function ReloadPrompt() {
|
|
|
|
// @ts-expect-error just ignore
|
|
|
|
// @ts-expect-error just ignore
|
|
|
|
// if (reloadSW === 'true') {
|
|
|
|
// if (reloadSW === 'true') {
|
|
|
|
r &&
|
|
|
|
r &&
|
|
|
|
|
|
|
|
setTimeout(() => {
|
|
|
|
|
|
|
|
r.update();
|
|
|
|
|
|
|
|
|
|
|
|
setInterval(() => {
|
|
|
|
setInterval(() => {
|
|
|
|
// console.log('Checking for sw update');
|
|
|
|
// console.log('Checking for sw update');
|
|
|
|
r.update();
|
|
|
|
r.update();
|
|
|
|
}, 1000 * 60 * 60 * 8);
|
|
|
|
}, 1000 * 60 * 60 * 8);
|
|
|
|
|
|
|
|
}, 1000 * 3);
|
|
|
|
// } else {
|
|
|
|
// } else {
|
|
|
|
// eslint-disable-next-line prefer-template
|
|
|
|
// eslint-disable-next-line prefer-template
|
|
|
|
// console.log('SW Registered: ' + r);
|
|
|
|
// console.log('SW Registered: ' + r);
|
|
|
|