Files

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 {}
})();