update app_modules.js
This commit is contained in:
@@ -1059,14 +1059,17 @@ function SetPages() {
|
|||||||
document.getElementById("appendApps2").append(a);
|
document.getElementById("appendApps2").append(a);
|
||||||
}
|
}
|
||||||
var Booted = false;
|
var Booted = false;
|
||||||
|
var TimeoutBoot = 4;
|
||||||
|
var BootLoops = 0;
|
||||||
getPeers();
|
getPeers();
|
||||||
|
|
||||||
setInterval(() => {
|
setInterval(() => {
|
||||||
getPeers();
|
getPeers();
|
||||||
if (window.navigator.onLine == false && !Booted) {
|
BootLoops =+ 1;
|
||||||
|
if ((BootLoops >= TimeoutBoot || window.navigator.onLine == false) && !Booted) {
|
||||||
Booted = true;
|
Booted = true;
|
||||||
document.getElementById("loading").style.display = "none";
|
document.getElementById("loading").style.display = "none";
|
||||||
toastr.error("Sin internet! Los cambios se sincronizarán cuando te vuelvas a conectar.")
|
toastr.error("Sin conexion! Los cambios se sincronizarán cuando te vuelvas a conectar.")
|
||||||
if (!SUB_LOGGED_IN) {
|
if (!SUB_LOGGED_IN) {
|
||||||
open_page("login");
|
open_page("login");
|
||||||
} else {
|
} else {
|
||||||
|
|||||||
Reference in New Issue
Block a user