mirror of
https://github.com/Foundryborne/daggerheart.git
synced 2026-01-12 11:41:08 +01:00
Adding suggestions from reviewer
This commit is contained in:
parent
f131dc4ec0
commit
5f45609656
2 changed files with 4 additions and 8 deletions
|
|
@ -55,10 +55,8 @@ export default class DhpChatLog extends foundry.applications.sidebar.tabs.ChatLo
|
|||
];
|
||||
}
|
||||
|
||||
addChatListeners = async (app, html, data) => {
|
||||
// Despite documentation, the third parameter may be empty as per
|
||||
// https://github.com/foundryvtt/foundryvtt/issues/11984
|
||||
const message = data?.message ?? app.toObject(false);
|
||||
addChatListeners = async (document, html, data) => {
|
||||
const message = data?.message ?? document.toObject(false);
|
||||
html.querySelectorAll('.simple-roll-button').forEach(element =>
|
||||
element.addEventListener('click', event => this.onRollSimple(event, message))
|
||||
);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue