utilisation de renderTemplate "interne"

Import de foundry.applications.handlebars.renderTemplate
au travers d'une constante pour éliminer les warnings
This commit is contained in:
2025-09-30 02:03:02 +02:00
parent 053bc23d12
commit d0ba1ebf99
43 changed files with 57 additions and 32 deletions

View File

@@ -1,4 +1,5 @@
/* -------------------------------------------- */
import { renderTemplate } from "./constants.js";
import { HtmlUtility } from "./html-utility.js";
import { RdDCombatManager } from "./rdd-combat.js";
import { Targets } from "./targets.js";
@@ -132,7 +133,7 @@ export class RdDTokenHud {
/* -------------------------------------------- */
static async _configureSubMenu(insertMethod, template, hudData, onMenuItem) {
const hud = $(await foundry.applications.handlebars.renderTemplate(template, hudData));
const hud = $(await renderTemplate(template, hudData));
const list = hud.find('div.rdd-hud-list');
RdDTokenHud._toggleHudListActive(hud, list);