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 { ChatUtility } from "./chat-utility.js";
|
||||
import { renderTemplate } from "./constants.js";
|
||||
|
||||
export class RdDRollResult {
|
||||
|
||||
@@ -13,6 +14,6 @@ export class RdDRollResult {
|
||||
|
||||
static async buildRollDataHtml(rollData, template = 'chat-resultat-general.hbs') {
|
||||
rollData.show = rollData.show || {};
|
||||
return await foundry.applications.handlebars.renderTemplate(`systems/foundryvtt-reve-de-dragon/templates/${template}`, rollData);
|
||||
return await renderTemplate(`systems/foundryvtt-reve-de-dragon/templates/${template}`, rollData);
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user