Fix bugu s location.hash (v chromu) #1557

This commit is contained in:
Jonas Havelka 2025-03-19 18:50:39 +01:00
parent 4912349577
commit 66ec9bb33f

View file

@ -38,7 +38,11 @@
window.addEventListener("load", _ => {
update_all({}, true, _ => {
if (location.hash !== "") location.hash = location.hash; // Po rozházení korektur sescrollujeme na kotvu v URL
if (location.hash !== "") { // Po rozházení korektur sescrollujeme na kotvu v URL
const h = location.hash.substring(1);
location.hash = "HACK";
location.hash = h;
}
});
});