working on user lost for admin
This commit is contained in:
@@ -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));
|
||||
|
||||
Reference in New Issue
Block a user