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