Files
Haven/public/js/theme-init.js
T
2026-02-11 00:15:56 -05:00

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