This commit is contained in:
WBHarry 2026-04-21 17:46:09 +02:00
parent 8f32a6dddc
commit 06535b0e91
2 changed files with 5 additions and 7 deletions

View file

@ -137,9 +137,9 @@ export default class DhpChatMessage extends foundry.documents.ChatMessage {
element.addEventListener('click', this.onApplyEffect.bind(this))
);
html.querySelectorAll('.action-areas').forEach(element =>
element.addEventListener('click', this.onCreateAreas.bind(this))
);
for (const element of html.querySelectorAll('.action-areas')) {
element.addEventListener('click', this.onCreateAreas.bind(this));
}
html.querySelectorAll('.roll-target').forEach(element => {
element.addEventListener('mouseenter', this.hoverTarget);