diff --git a/module/rdd-token-hud.js b/module/rdd-token-hud.js index b75a1ef7..96680c68 100644 --- a/module/rdd-token-hud.js +++ b/module/rdd-token-hud.js @@ -112,7 +112,7 @@ export class RdDTokenHud { /* -------------------------------------------- */ static async addTokenHudExtensions(app, html, tokenId) { - const controlIconCombat = html.find('.control-icon[data-action=combat]'); + const controlIconCombat = $(html).find('.control-icon[data-action=combat]'); if (controlIconCombat.length > 0) { controlIconCombat.click(event => { if (event.currentTarget.className.includes('active')) { diff --git a/module/sommeil/dialog-chateau-dormant.js b/module/sommeil/dialog-chateau-dormant.js index 0908cdbf..c01075dc 100644 --- a/module/sommeil/dialog-chateau-dormant.js +++ b/module/sommeil/dialog-chateau-dormant.js @@ -9,7 +9,7 @@ export class DialogChateauDormant extends Dialog { motifStress: `Nuit du ${date}`, finChateauDormant: game.system.rdd.calendrier.getTimestampFinChateauDormant() }; - const html = await renderTemplate("systems/foundryvtt-reve-de-dragon/templates/sommeil/dialog-chateau-dormant.hbs", + const html = await foundry.applications.handlebars.renderTemplate("systems/foundryvtt-reve-de-dragon/templates/sommeil/dialog-chateau-dormant.hbs", dialogData); new DialogChateauDormant(dialogData, html)