working on user lost for admin

This commit is contained in:
2025-07-02 09:17:05 +02:00
parent 086f722074
commit 372cce43fa
7 changed files with 89 additions and 34 deletions

View File

@@ -17,11 +17,8 @@
function loadTheme(name){
if (!name) return;
console.log({theme:name});
const url = `${location.protocol}//${location.host.replace('5173','8080')}/css/${name}.css`;
fetch(url).then(resp => resp.text()).then(css => {
document.getElementById('usercss').innerText = css;
});
fetch(url).then(resp => resp.text()).then(css => document.getElementById('usercss').innerText = css);
}
$effect(() => loadTheme(user.theme));