Skip to content

Commit eda7bdc

Browse files
remove extra class setting
we set quarto-light or quarto-dark at the end of this script, with the correct setting. so there is no need to set it here.
1 parent caa36de commit eda7bdc

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

src/resources/formats/html/templates/quarto-html-before-body.ejs

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -21,9 +21,6 @@
2121
}
2222
}
2323
24-
toggleBodyColorPrimary();
25-
26-
2724
const toggleColorMode = (alternate) => {
2825
// Switch the stylesheets
2926
const primaryStylesheets = window.document.querySelectorAll('link.quarto-color-scheme:not(.quarto-color-alternate)');
@@ -186,7 +183,7 @@
186183
const alternate = e.matches
187184
toggleColorMode(alternate);
188185
toggleGiscusIfUsed(alternate, darkModeDefault);
189-
})
186+
});
190187
<% } %>
191188
192189
// Switch to dark mode if need be

0 commit comments

Comments
 (0)