Skip to content

Commit

Permalink
feat(sub-font): improve robustness
Browse files Browse the repository at this point in the history
  • Loading branch information
BlackGlory committed Oct 13, 2024
1 parent d3a4fef commit b95990d
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/background/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -147,7 +147,8 @@ async function convertRuleToCSS(

if (rule.subFontFamilyEnabled) {
localFonts = [
...localFonts.map(x => `${x} ${rule.subFontFamily}`)
...localFonts.map(x => `${x} ${rule.subFontFamily.trim()}`)
, ...localFonts.map(x => `${x}-${rule.subFontFamily.trim()}`)
, ...localFonts
]
}
Expand Down

0 comments on commit b95990d

Please sign in to comment.