mirror of
https://github.com/ancsemi/Haven.git
synced 2026-11-06 22:13:34 +00:00
6 lines
202 B
JavaScript
6 lines
202 B
JavaScript
// Apply saved theme immediately to prevent flash of unstyled content
|
|
(function() {
|
|
var t = localStorage.getItem('haven_theme');
|
|
if (t) document.documentElement.setAttribute('data-theme', t);
|
|
})();
|