hatecomputers.club/static/js/util/setThemeBeforeRender.js

7 lines
208 B
JavaScript
Raw Normal View History

2024-03-26 18:00:05 -04:00
// sets theme before rendering & jquery loaded to prevent flashing of uninitialized theme
// (ugly white background)
document.documentElement.setAttribute(
"data-theme",
localStorage.getItem("theme"),
);