From 1992d618a934ac5e5abc72810fd30f34cd0bb560 Mon Sep 17 00:00:00 2001 From: Nicolas Delaforge Date: Fri, 24 Sep 2021 21:01:41 +0200 Subject: [PATCH] initial import --- module/actor/actor-sheet.js | 4 ++-- module/bol.js | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/module/actor/actor-sheet.js b/module/actor/actor-sheet.js index 0376580..cead6e5 100644 --- a/module/actor/actor-sheet.js +++ b/module/actor/actor-sheet.js @@ -18,9 +18,9 @@ export class BoLActorSheet extends ActorSheet { /* -------------------------------------------- */ /** @override */ - getData() { + getData(options) { console.debug("getData"); - const actor = super.getData(); + const actor = super.getData(options); console.log(actor.data); actor.data.details = actor.data.data.details; actor.data.attributes = Object.values(actor.data.data.attributes); diff --git a/module/bol.js b/module/bol.js index 6873e03..2392ff6 100644 --- a/module/bol.js +++ b/module/bol.js @@ -40,7 +40,7 @@ Hooks.once('init', async function () { registerSystemSettings(); // Preload Handlebars Templates - preloadHandlebarsTemplates(); + await preloadHandlebarsTemplates(); // Register Handlebars helpers registerHandlebarsHelpers();