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 c5c8a2f0cf - Show all commits

View File

@ -1335,7 +1335,7 @@ single.getRoute("/webui/cheats").on("beforeload", function () {
})
);
} else {
if (await res.text() == "Log-in expired") {
if ((await res.text()) == "Log-in expired") {
revalidateAuthz(() => {
single.loadRoute("/webui/cheats");
});