diff --git a/src/main.ts b/src/main.ts index f65c6d5..b1ae95f 100644 --- a/src/main.ts +++ b/src/main.ts @@ -41,7 +41,7 @@ export default class DiceRollerPlugin extends Plugin { await this.loadSettings(); DiceRenderer.setData(this.getRendererData()); - this.addChild(DiceRenderer); + this.api.initialize(this.data, this.app); window["DiceRoller"] = this.api;