update
This commit is contained in:
@@ -32,7 +32,6 @@ if (urlParams.get("login") != null) {
|
||||
urlParams.get("login").split(":")[1]
|
||||
);
|
||||
//location.search = "";
|
||||
SetPages()
|
||||
}
|
||||
|
||||
function open_page(params) {
|
||||
|
||||
@@ -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);
|
||||
|
||||
@@ -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")
|
||||
|
||||
Reference in New Issue
Block a user