Call history.replaceState when clicking the fullscreen button.

This commit is contained in:
voussoir 2022-03-21 18:49:59 -07:00
parent 7799827931
commit 9cf2103d52
No known key found for this signature in database
GPG key ID: 5F7554F8C26DACCB

View file

@ -1114,6 +1114,7 @@ function fullscreen_on()
element.classList.add("hidden");
}
}
history.replaceState(null, "", `${window.location.pathname}?justthesplash`);
document.body.classList.add("justthesplash");
}
@ -1124,6 +1125,7 @@ function fullscreen_off()
{
element.classList.remove("hidden");
}
history.replaceState(null, "", `${window.location.pathname}`);
document.body.classList.remove("justthesplash");
}