mirror of
https://github.com/Foundryborne/daggerheart.git
synced 2026-01-11 19:25:21 +01:00
Switching to using the POJ of app instead of the context
This commit is contained in:
parent
f9aad77484
commit
ffc82daeea
2 changed files with 2 additions and 2 deletions
|
|
@ -197,7 +197,7 @@ Hooks.on('renderChatMessageHTML', (app, element, _) => {
|
|||
enricherRenderSetup(element);
|
||||
// Despite documentation, the third parameter may be empty as per
|
||||
// https://github.com/foundryvtt/foundryvtt/issues/11984
|
||||
const message = app._source;
|
||||
const message = app.toObject(false);
|
||||
const cssClass = message.flags?.daggerheart?.cssClass;
|
||||
if (cssClass) cssClass.split(' ').forEach(cls => element.classList.add(cls));
|
||||
});
|
||||
|
|
|
|||
|
|
@ -58,7 +58,7 @@ export default class DhpChatLog extends foundry.applications.sidebar.tabs.ChatLo
|
|||
addChatListeners = async (app, html, _) => {
|
||||
// Despite documentation, the third parameter may be empty as per
|
||||
// https://github.com/foundryvtt/foundryvtt/issues/11984
|
||||
const message = app._source;
|
||||
const message = app.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