Skip to content

Commit f79c831

Browse files
Nemo157GuillaumeGomez
authored andcommitted
Only set theme if configured
1 parent 8d01998 commit f79c831

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

templates/theme.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
(function() {
22
function applyTheme(theme) {
3-
document.documentElement.dataset.theme = theme;
3+
if (theme) {
4+
document.documentElement.dataset.theme = theme;
5+
}
46
}
57

68
window.addEventListener('storage', function (ev) {

0 commit comments

Comments
 (0)