7 lines
208 B
JavaScript
7 lines
208 B
JavaScript
|
// sets theme before rendering & jquery loaded to prevent flashing of uninitialized theme
|
||
|
// (ugly white background)
|
||
|
document.documentElement.setAttribute(
|
||
|
"data-theme",
|
||
|
localStorage.getItem("theme"),
|
||
|
);
|