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:
@@ -39,6 +39,7 @@ import { RollDialogAdapter } from "./roll-dialog-adapter.mjs";
|
||||
import { ROLLDIALOG_SECTION } from "./roll-part.mjs";
|
||||
import { ROLL_TYPE_COMP } from "./roll-constants.mjs";
|
||||
import ChatRollResult from "./chat-roll-result.mjs";
|
||||
import { renderTemplate } from "../constants.js";
|
||||
|
||||
|
||||
const { HandlebarsApplicationMixin, ApplicationV2 } = foundry.applications.api
|
||||
@@ -368,7 +369,7 @@ export default class RollDialog extends HandlebarsApplicationMixin(ApplicationV2
|
||||
}
|
||||
|
||||
async buildHTMLTable(carac, diff) {
|
||||
return await foundry.applications.handlebars.renderTemplate('roll-table', { carac, diff })
|
||||
return await renderTemplate('roll-table', { carac, diff })
|
||||
}
|
||||
|
||||
async _prepareContext() {
|
||||
|
Reference in New Issue
Block a user