From eefa116d9a15eab0b1ac84fa8d2b80818b76b351 Mon Sep 17 00:00:00 2001 From: WBHarry <89362246+WBHarry@users.noreply.github.com> Date: Mon, 14 Jul 2025 00:48:59 +0200 Subject: [PATCH] 321 - ChatLog Popout (#331) * Fixed chatlog popout * PR Fix --- module/applications/ui/chatLog.mjs | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/module/applications/ui/chatLog.mjs b/module/applications/ui/chatLog.mjs index e8f699e4..f295d2a6 100644 --- a/module/applications/ui/chatLog.mjs +++ b/module/applications/ui/chatLog.mjs @@ -1,6 +1,6 @@ export default class DhpChatLog extends foundry.applications.sidebar.tabs.ChatLog { - constructor() { - super(); + constructor(options) { + super(options); this.targetTemplate = { activeLayer: undefined, @@ -14,6 +14,8 @@ export default class DhpChatLog extends foundry.applications.sidebar.tabs.ChatLo } addChatListeners = async (app, html, data) => { + super.addChatListeners(app, html, data); + html.querySelectorAll('.duality-action-damage').forEach(element => element.addEventListener('click', event => this.onRollDamage(event, data.message)) );