mirror of
https://github.com/Foundryborne/daggerheart.git
synced 2026-01-12 11:41:08 +01:00
Adding some comments
This commit is contained in:
parent
0bd49604f8
commit
0bcb030279
2 changed files with 2 additions and 0 deletions
|
|
@ -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))
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue