From b4700f46fd1fea663e58068dd87a404c80c4a7ae Mon Sep 17 00:00:00 2001 From: naielv <109038805+naielv@users.noreply.github.com> Date: Tue, 26 Aug 2025 14:57:57 +0200 Subject: [PATCH] update app_modules.js --- src/app_modules.js | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/src/app_modules.js b/src/app_modules.js index 1fccdd2..91583fc 100644 --- a/src/app_modules.js +++ b/src/app_modules.js @@ -1059,14 +1059,17 @@ function SetPages() { document.getElementById("appendApps2").append(a); } var Booted = false; +var TimeoutBoot = 4; +var BootLoops = 0; getPeers(); setInterval(() => { getPeers(); - if (window.navigator.onLine == false && !Booted) { + BootLoops =+ 1; + if ((BootLoops >= TimeoutBoot || window.navigator.onLine == false) && !Booted) { Booted = true; 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) { open_page("login"); } else {