Actualizar configuracion.html

This commit is contained in:
2026-03-08 21:42:43 +00:00
parent 0d979bed58
commit 8a4741a2d1

View File

@@ -715,9 +715,6 @@
let cachedTemplates = {}; let cachedTemplates = {};
let currentTemplateType = null; let currentTemplateType = null;
let localGuilds = []; 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", () => { document.addEventListener("DOMContentLoaded", () => {
if (!localStorage.getItem("token")) window.location.href = "index.html"; if (!localStorage.getItem("token")) window.location.href = "index.html";
@@ -725,6 +722,11 @@
loadTemplates(); loadTemplates();
loadWaSettings(); loadWaSettings();
}); });
if (!localStorage.getItem("token")) window.location.href = "index.html";
showTab('templates');
loadTemplates();
loadWaSettings();
});
// ========================================== // ==========================================
// LÓGICA DE NAVEGACIÓN Y TABS // LÓGICA DE NAVEGACIÓN Y TABS