Cleanup theme switcher

This commit is contained in:
the-djmaze 2022-03-01 15:49:35 +01:00
parent 0f14e235b4
commit 4250dcf3f0
3 changed files with 20 additions and 35 deletions

View file

@ -6,7 +6,6 @@ const
doc = document,
eId = id => doc.getElementById('rl-'+id),
app = eId('app'),
css = eId('css'),
admin = app && '1' == app.dataset.admin,
cb = () => rl.app.bootstart(),
@ -70,8 +69,6 @@ win.rl = {
}
};
css.href = css.dataset.href;
loadScript(`./?/${admin ? 'Admin' : ''}AppData/0/${Math.random().toString().slice(2)}/`)
.then(() => 0);