Compare commits

...

3 Commits

Author SHA1 Message Date
dgtlmoon
c693004612 Undo unrelated change 2023-04-29 16:16:13 +02:00
dgtlmoon
891c906ee5 Should be window.history 2023-04-29 16:13:35 +02:00
Joseph Rollins
5d411e8985 Fix tab navigation 2023-04-26 09:23:48 -07:00

View File

@@ -12,7 +12,8 @@ window.addEventListener('hashchange', function () {
var has_errors = document.querySelectorAll(".messages .error");
if (!has_errors.length) {
if (document.location.hash == "") {
document.querySelector(".tabs ul li:first-child a").click();
const hash = document.querySelector(".tabs ul li:first-child a").href;
window.history.replaceState(undefined, undefined, hash);
} else {
set_active_tab();
}