From f9f38814de64b9f289a9c599862d3f4c1a268017 Mon Sep 17 00:00:00 2001 From: IrkTheImp Date: Sat, 28 Jun 2025 09:23:23 -0500 Subject: [PATCH] cleanup --- module/applications/settings/homebrewSettings.mjs | 5 +---- templates/sheets/parts/gold.hbs | 2 -- 2 files changed, 1 insertion(+), 6 deletions(-) diff --git a/module/applications/settings/homebrewSettings.mjs b/module/applications/settings/homebrewSettings.mjs index 87902c35..e67afb1b 100644 --- a/module/applications/settings/homebrewSettings.mjs +++ b/module/applications/settings/homebrewSettings.mjs @@ -1,6 +1,5 @@ import { DhHomebrew } from '../../data/settings/_module.mjs'; import DhSettingsActionView from './components/settingsActionsView.mjs'; -import { defaultRestOptions } from '../../config/generalConfig.mjs'; const { HandlebarsApplicationMixin, ApplicationV2 } = foundry.applications.api; @@ -159,10 +158,9 @@ export default class DhHomebrewSettings extends HandlebarsApplicationMixin(Appli } static async reset() { - //For some reason this doesn't seem to localize any of the strings, so calling a recursive call to localize all strings. ¯\_(ツ)_/¯ const resetSettings = new DhHomebrew(); let localizedSettings = this.localizeObject(resetSettings); - await this.settings.updateSource(localizedSettings); + this.settings.updateSource(localizedSettings); this.render(); } @@ -175,7 +173,6 @@ export default class DhHomebrewSettings extends HandlebarsApplicationMixin(Appli } else { if (typeof value === 'string' && value.startsWith('DAGGERHEART.')) { obj[key] = game.i18n.localize(value); - console.log(obj[key]); } } } diff --git a/templates/sheets/parts/gold.hbs b/templates/sheets/parts/gold.hbs index 0839c3e1..d25894b5 100644 --- a/templates/sheets/parts/gold.hbs +++ b/templates/sheets/parts/gold.hbs @@ -1,5 +1,3 @@ - -{{log this}}
{{localize this.inventory.currency.title}}