diff --git a/src/main.mjs b/src/main.mjs index d4f4987..cd78a3b 100644 --- a/src/main.mjs +++ b/src/main.mjs @@ -142,9 +142,8 @@ class DSA41_ChatMessage extends ChatMessage { return game.actors.get(this.speaker.actor); } - async getHTML() { - const html = (await super.getHTML())[0]; - if (!html) return; + async renderHTML({ canDelete, canClose=false, ...rest }={}) { + const html = await super.renderHTML({ canDelete, canClose, ...rest }); const img = this.actor?.img ?? this.author.avatar; const name = this.alias;