Skip to content

Commit

Permalink
🐛 #1722
Browse files Browse the repository at this point in the history
  • Loading branch information
Vanessa219 committed Dec 3, 2024
1 parent a80526d commit a0874eb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/ts/ui/setCodeTheme.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ export const setCodeTheme = (codeTheme: string, cdn = Constants.CDN) => {
codeTheme = "github";
}
const vditorHljsStyle = document.getElementById("vditorHljsStyle") as HTMLLinkElement;
const href = `${cdn}/dist/js/highlight.js/styles/${codeTheme}.css`;
const href = `${cdn}/dist/js/highlight.js/styles/${codeTheme}.min.css`;
if (!vditorHljsStyle) {
addStyle(href, "vditorHljsStyle");
} else if (vditorHljsStyle.getAttribute('href') !== href) {
Expand Down

0 comments on commit a0874eb

Please sign in to comment.