Skip to content

Commit

Permalink
修复 自定义字体 功能在某些情况下会出现字体样式残留的问题
Browse files Browse the repository at this point in the history
  • Loading branch information
xiyuesaves committed Jun 7, 2024
1 parent 3043b9e commit 753dc3b
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/render_modules/initStyle.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ updateOptions(updateFont);
async function updateFont() {
if (!options.message.overrideFont.fullName) {
document.body.style.fontFamily = "";
document.body.style.fontStyle = "";
return;
}
if (options.message.overrideFont.fullName.includes(",")) {
Expand Down

0 comments on commit 753dc3b

Please sign in to comment.