Ensure this is purely a reload
This commit is contained in:
parent
c5c8a2f0cf
commit
d95fbf204d
@ -1337,7 +1337,9 @@ single.getRoute("/webui/cheats").on("beforeload", function () {
|
|||||||
} else {
|
} else {
|
||||||
if ((await res.text()) == "Log-in expired") {
|
if ((await res.text()) == "Log-in expired") {
|
||||||
revalidateAuthz(() => {
|
revalidateAuthz(() => {
|
||||||
|
if (single.getCurrentPath() == "/webui/cheats") {
|
||||||
single.loadRoute("/webui/cheats");
|
single.loadRoute("/webui/cheats");
|
||||||
|
}
|
||||||
});
|
});
|
||||||
} else {
|
} else {
|
||||||
$("#server-settings-no-perms").removeClass("d-none");
|
$("#server-settings-no-perms").removeClass("d-none");
|
||||||
|
Loading…
x
Reference in New Issue
Block a user