mirror of
https://github.com/fluxerapp/fluxer.git
synced 2026-12-03 23:52:17 -08:00
13 lines
256 B
JavaScript
13 lines
256 B
JavaScript
(() => {
|
|
try {
|
|
const root = document.documentElement;
|
|
if (document.hasFocus()) {
|
|
root.classList.add('window-focused');
|
|
}
|
|
const theme = localStorage.getItem('theme');
|
|
if (theme) {
|
|
root.classList.add(`theme-${theme}`);
|
|
}
|
|
} catch {}
|
|
})();
|