diff --git a/presupuestos.html b/presupuestos.html index c05dc8b..2cd9864 100644 --- a/presupuestos.html +++ b/presupuestos.html @@ -252,8 +252,7 @@ async function applyTheme() { try { let theme = JSON.parse(localStorage.getItem('app_theme')); - const res = await fetch(`${API_URL}/config/company`, { headers: { "Authorization": `Bearer ${localStorage.getItem("token")}` } }); - const data = await res.json(); + const res = await fetch(`${API_URL}/services/active`, { headers: { "Authorization": `Bearer ${localStorage.getItem("token")}` } }); const data = await res.json(); if(data.ok && data.config && data.config.portal_settings && data.config.portal_settings.app_settings) { theme = data.config.portal_settings.app_settings; localStorage.setItem('app_theme', JSON.stringify(theme));