Fixed PWAs not showing updates
This commit is contained in:
parent
8e8c71224a
commit
6085dfdfe2
1 changed files with 2 additions and 1 deletions
|
@ -70,7 +70,8 @@ requestAnimationFrame(async () => {
|
|||
onRegisterError: console.warn,
|
||||
onRegistered(r) {
|
||||
if (r) {
|
||||
setInterval(r.update, 60 * 60 * 1000);
|
||||
// https://stackoverflow.com/questions/65500916/typeerror-failed-to-execute-update-on-serviceworkerregistration-illegal-in
|
||||
setInterval(() => r.update(), 60 * 60 * 1000);
|
||||
}
|
||||
}
|
||||
});
|
||||
|
|
Loading…
Reference in a new issue