Skip to content

Commit

Permalink
Update Base.js
Browse files Browse the repository at this point in the history
Fix #370.
  • Loading branch information
mclemente committed May 16, 2024
1 parent 0f70b83 commit d71e62a
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions src/module/providers/templates/Base.js
Original file line number Diff line number Diff line change
Expand Up @@ -397,8 +397,11 @@ export default class LanguageProvider {
this.fonts[font].fontSize = game.polyglot.CustomFontSizes[font];
}
if (fonts[font]) {
this.fonts[font].alphabeticOnly = fonts[font].alphabeticOnly;
this.fonts[font].logographical = fonts[font].logographical;
if (typeof fonts[font] === "string") delete this.fonts[font];
else {
this.fonts[font].alphabeticOnly = fonts[font]?.alphabeticOnly ?? false;
this.fonts[font].logographical = fonts[font]?.logographical ?? false;
}
}
}
}
Expand Down

0 comments on commit d71e62a

Please sign in to comment.