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