diff --git a/modules/sheets/pokemonCharacterSheet.js b/modules/sheets/pokemonCharacterSheet.js index e288c68..1f3d1b0 100644 --- a/modules/sheets/pokemonCharacterSheet.js +++ b/modules/sheets/pokemonCharacterSheet.js @@ -82,9 +82,10 @@ export default class pokemonCharacterSheet extends api.HandlebarsApplicationMixi /** @override */ _onRender(context, options) { - const tabs = new foundry.applications.ux.Tabs({navSelector: ".tabs", contentSelector: ".content", initial: "tab1"}); + const tabs = new foundry.applications.ux.Tabs({navSelector: ".tabs", contentSelector: ".content", initial: this.tab}); tabs.bind(this.element); + console.log(this.tab); tabs.activate(this.tab); tabs.callback = function(){ diff --git a/system.json b/system.json index 5878c71..8943626 100644 --- a/system.json +++ b/system.json @@ -1,5 +1,5 @@ { - "version": "0.0.50", + "version": "0.0.51", "id": "pokemon", "title": "Pokémon TTRPG", "description": "A Pokémon TTRPG", diff --git a/system.zip b/system.zip index 63cb97c..422482c 100644 Binary files a/system.zip and b/system.zip differ