]>
git.wh0rd.org - chrome-ext/tabs-backup.git/blob - theme-init.js
ade6ae2ef0a5a807c781d9dfda53f7e9d3faf974
1 // Load the theme override asap to help with initial loading/flashing.
2 function switchTheme(theme
) {
3 const css
= document
.querySelector('link#theme-override');
4 if (theme
== 'light' || theme
== 'dark') {
5 css
.href
= `${theme}.css`;
11 switchTheme(localStorage
.prefsTheme
);