Skip to content

Commit

Permalink
Fix for undefined values 2
Browse files Browse the repository at this point in the history
  • Loading branch information
mclemente committed Oct 19, 2023
1 parent 2dd95c6 commit 1e2ce2d
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 7 deletions.
8 changes: 4 additions & 4 deletions src/module/LanguageProvider.js
Original file line number Diff line number Diff line change
Expand Up @@ -278,12 +278,12 @@ export class LanguageProvider {
* It Hooks on ready if the system depends on reading compendiums.
*/
async setup() {
game.polyglot.omniglot = game.settings.get("polyglot", "omniglot");
game.polyglot.comprehendLanguages = game.settings.get("polyglot", "comprehendLanguages");
game.polyglot.truespeech = game.settings.get("polyglot", "truespeech");

const setupSteps = async () => {
await this.getLanguages();

game.polyglot.omniglot = game.settings.get("polyglot", "omniglot");
game.polyglot.comprehendLanguages = game.settings.get("polyglot", "comprehendLanguages");
game.polyglot.truespeech = game.settings.get("polyglot", "truespeech");
const enableAllFonts = game.settings.get("polyglot", "enableAllFonts");
if (enableAllFonts) {
for (let font in game.settings.get("core", "fonts")) {
Expand Down
3 changes: 0 additions & 3 deletions src/module/logic.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,6 @@ export class Polyglot {
this.CustomFontSizes = game.settings.get("polyglot", "CustomFontSizes");
this.registerModule = null;
this.registerSystem = null;
this._omniglot = "";
this._comprehendLanguages = "";
this._truespeech = "";
}

init() {
Expand Down

0 comments on commit 1e2ce2d

Please sign in to comment.