diff --git a/module/actor.js b/module/actor.js index 165c61da..d1d060c5 100644 --- a/module/actor.js +++ b/module/actor.js @@ -3202,8 +3202,7 @@ export class RdDActor extends Actor { isRapide: isRapide } - let html = await renderTemplate('systems/foundryvtt-reve-de-dragon/templates/dialog-tmr.html', tmrFormData); - this.currentTMR = await RdDTMRDialog.create(html, this, tmrFormData); + this.currentTMR = await RdDTMRDialog.create(this, tmrFormData); this.currentTMR.render(true); } diff --git a/module/rdd-tmr-dialog.js b/module/rdd-tmr-dialog.js index 84a18c8f..598128fa 100644 --- a/module/rdd-tmr-dialog.js +++ b/module/rdd-tmr-dialog.js @@ -23,7 +23,8 @@ import { RdDCalendrier } from "./rdd-calendrier.js"; export class RdDTMRDialog extends Dialog { - static async create(html, actor, tmrData) { + static async create(actor, tmrData) { + let html = await renderTemplate('systems/foundryvtt-reve-de-dragon/templates/dialog-tmr.html', tmrData); if (tmrData.mode != 'visu') { // Notification au MJ