forked from public/foundryvtt-reve-de-dragon
utilisation de renderTemplate "interne"
Import de foundry.applications.handlebars.renderTemplate au travers d'une constante pour éliminer les warnings
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user