Fixed PWAs not showing updates

This commit is contained in:
thepaperpilot 2022-12-08 19:31:36 -06:00
parent 8e8c71224a
commit 6085dfdfe2

View file

@ -70,7 +70,8 @@ requestAnimationFrame(async () => {
onRegisterError: console.warn, onRegisterError: console.warn,
onRegistered(r) { onRegistered(r) {
if (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);
} }
} }
}); });