Adding some comments

This commit is contained in:
nsalyzyn 2025-12-19 16:22:59 -07:00
parent 0bd49604f8
commit 0bcb030279
2 changed files with 2 additions and 0 deletions

View file

@ -59,6 +59,7 @@ export default class DhpChatLog extends foundry.applications.sidebar.tabs.ChatLo
html.querySelectorAll('.group-roll-header-expand-section').forEach(element =>
element.addEventListener('click', this.groupRollExpandSection)
);
// Despite documentation, data may be empty. For example, a module's chat message.
if (!data?.message) return;
html.querySelectorAll('.simple-roll-button').forEach(element =>
element.addEventListener('click', event => this.onRollSimple(event, data.message))