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