From 8a4741a2d1ca239776b2ce981f5e49aad87d18e8 Mon Sep 17 00:00:00 2001 From: marsalva Date: Sun, 8 Mar 2026 21:42:43 +0000 Subject: [PATCH] Actualizar configuracion.html --- configuracion.html | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/configuracion.html b/configuracion.html index 4ab9512..e07c330 100644 --- a/configuracion.html +++ b/configuracion.html @@ -715,9 +715,6 @@ let cachedTemplates = {}; let currentTemplateType = null; let localGuilds = []; - const API_URL = window.location.hostname === 'localhost' || window.location.hostname === '127.0.0.1' - ? 'http://localhost:3000' - : 'https://integrarepara-api.integrarepara.es'; document.addEventListener("DOMContentLoaded", () => { if (!localStorage.getItem("token")) window.location.href = "index.html"; @@ -725,6 +722,11 @@ loadTemplates(); loadWaSettings(); }); + if (!localStorage.getItem("token")) window.location.href = "index.html"; + showTab('templates'); + loadTemplates(); + loadWaSettings(); + }); // ========================================== // LÓGICA DE NAVEGACIÓN Y TABS