mirror of
https://github.com/Foundryborne/daggerheart.git
synced 2026-01-12 11:41:08 +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));
|
||||
});
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue