This commit is contained in:
naielv
2025-08-13 21:51:37 +02:00
parent 0fbc7cad39
commit aa3f312047
3 changed files with 3 additions and 2 deletions

View File

@@ -32,7 +32,6 @@ if (urlParams.get("login") != null) {
urlParams.get("login").split(":")[1]
);
//location.search = "";
SetPages()
}
function open_page(params) {

View File

@@ -1034,7 +1034,6 @@ function SetPages() {
document.getElementById("appendApps2").append(a);
}
document.addEventListener("DOMContentLoaded", () => {
SetPages();
document.getElementById("appendApps").style.display = "none";
});
var Booted = false;
@@ -1047,6 +1046,7 @@ setInterval(() => {
document.getElementById("loading").style.display = "none";
toastr.error("Sin internet! Los cambios se sincronizarán cuando te vuelvas a conectar.")
if (!SUB_LOGGED_IN) {
SetPages()
open_page("login");
} else {
open_page(location.hash.replace("#", ""));
@@ -1059,6 +1059,7 @@ setInterval(() => {
open_page("login");
return;
}
SetPages()
open_page(location.hash.replace("#", ""));
}
}, 1500);

View File

@@ -37,6 +37,7 @@ PAGES.login = {
SUB_LOGGED_IN_ID = document.getElementById(field_persona).value
SUB_LOGGED_IN_DETAILS = SC_Personas[SUB_LOGGED_IN_ID]
SUB_LOGGED_IN = true
SetPages()
if (location.hash.replace("#", "").startsWith("login")) {
open_page("index");
setUrlHash("index")