Skip to content

Commit

Permalink
🎨 fix #1230
Browse files Browse the repository at this point in the history
  • Loading branch information
Vanessa219 committed May 16, 2022
1 parent 27bb28d commit b43f454
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions CHANGELOG.md
Expand Up @@ -97,6 +97,8 @@

### v3.8.15 / 2022-06

* [1230](https://github.com/Vanessa219/vditor/issues/1230) cnd preview path 重复加载问题 `改进功能`

### v3.8.14 / 2022-05

* [1223](https://github.com/Vanessa219/vditor/issues/1223) 关于有时显示不完整 `修复缺陷`
Expand Down
2 changes: 1 addition & 1 deletion src/ts/ui/setContentTheme.ts
Expand Up @@ -8,7 +8,7 @@ export const setContentTheme = (contentTheme: string, path: string) => {
const cssPath = `${path}/${contentTheme}.css`;
if (!vditorContentTheme) {
addStyle(cssPath, "vditorContentTheme");
} else if (vditorContentTheme.href !== cssPath) {
} else if (vditorContentTheme.getAttribute("href") !== cssPath) {
vditorContentTheme.remove();
addStyle(cssPath, "vditorContentTheme");
}
Expand Down

0 comments on commit b43f454

Please sign in to comment.