This commit is contained in:
naielv
2025-08-11 15:25:21 +02:00
parent 2e438c4b9e
commit 9b9bd730dd
2 changed files with 5 additions and 3 deletions

View File

@@ -1012,12 +1012,14 @@ 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");
return;
} else {
document.getElementById("appendApps").style.display = "block";
open_page(location.hash.replace("#", ""));
}
toastr.error("Sin internet! Los cambios se sincronizarán cuando te vuelvas a conectar.")
}
setInterval(() => {
getPeers();

View File

@@ -9,7 +9,7 @@ self.addEventListener("message", (event) => {
workbox.routing.registerRoute(
new RegExp('/*'),
new workbox.strategies.NetworkFirst({
new workbox.strategies.StaleWhileRevalidate({
cacheName: CACHE
})
);