update
This commit is contained in:
@@ -1009,25 +1009,24 @@ document.addEventListener("DOMContentLoaded", () => {
|
||||
});
|
||||
var Booted = false;
|
||||
getPeers();
|
||||
if (window.navigator.onLine == false) {
|
||||
Booted = true;
|
||||
document.getElementById("loading").style.display = "none";
|
||||
toastr.error("Sin internet! Los cambios se sincronizarán cuando te vuelvas a conectar.")
|
||||
if (!SUB_LOGGED_IN) {
|
||||
setUrlHash("login");
|
||||
open_page("login");
|
||||
} else {
|
||||
document.getElementById("appendApps").style.display = "block";
|
||||
open_page(location.hash.replace("#", ""));
|
||||
}
|
||||
}
|
||||
|
||||
setInterval(() => {
|
||||
getPeers();
|
||||
if (window.navigator.onLine == false) {
|
||||
Booted = true;
|
||||
document.getElementById("loading").style.display = "none";
|
||||
toastr.error("Sin internet! Los cambios se sincronizarán cuando te vuelvas a conectar.")
|
||||
if (!SUB_LOGGED_IN) {
|
||||
open_page("login");
|
||||
} else {
|
||||
document.getElementById("appendApps").style.display = "block";
|
||||
open_page(location.hash.replace("#", ""));
|
||||
}
|
||||
}
|
||||
if (ConnectionStarted && !Booted) {
|
||||
Booted = true;
|
||||
document.getElementById("loading").style.display = "none";
|
||||
if (!SUB_LOGGED_IN) {
|
||||
setUrlHash("login");
|
||||
open_page("login");
|
||||
return;
|
||||
}
|
||||
|
||||
@@ -38,14 +38,17 @@ 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
|
||||
setUrlHash("index")
|
||||
setUrlHash("index")
|
||||
setUrlHash("index")
|
||||
if (!location.hash.replace("#", "").startsWith("login")) {
|
||||
oppen_page("index");
|
||||
setUrlHash("index")
|
||||
} else{
|
||||
open_page(location.hash.replace("#", ""));
|
||||
}
|
||||
document.getElementById("appendApps").style.display = "unset"
|
||||
};
|
||||
|
||||
document.getElementById(btn_reload).onclick = () => {
|
||||
setUrlHash("login," + safeuuid(""))
|
||||
open_page("login")
|
||||
};
|
||||
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user