hopefully fixed bug when going back to site after pressing a redirect button

This commit is contained in:
2025-01-17 22:35:47 +01:00
parent 1665747cb2
commit f4ee79c103
+10
View File
@@ -180,6 +180,16 @@ window.addEventListener("resize", function() {
}
})
window.addEventListener("pageshow", (event) => {
if (event.persisted) {
// reload page to clear unwanted cache.
// for some reason the loading screen stays
// permanently open without this.
window.location.reload();
}
});
let prevAnimationState = isAnimating
/*