fix(webui): handle config get request failing due to expired authz #1716

Merged
Sainan merged 3 commits from cheats-authz into main 2025-04-18 11:17:56 -07:00
Showing only changes of commit d95fbf204d - Show all commits

View File

@ -1337,7 +1337,9 @@ single.getRoute("/webui/cheats").on("beforeload", function () {
} else {
if ((await res.text()) == "Log-in expired") {
revalidateAuthz(() => {
single.loadRoute("/webui/cheats");
if (single.getCurrentPath() == "/webui/cheats") {
single.loadRoute("/webui/cheats");
}
});
} else {
$("#server-settings-no-perms").removeClass("d-none");