Actualizar configuracion.html
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user