fix token rendering

This commit is contained in:
CPTN Cosmo 2026-03-24 02:37:05 +01:00
parent b13fbd5328
commit e34d682a68
2 changed files with 3 additions and 3 deletions

View file

@ -20,11 +20,11 @@ Hooks.on('renderTokenHUD', (app, html, data) => {
`;
// Append to the right column of the Token HUD
const colRight = html.find('.col.right');
const colRight = $(html).find('.col.right');
colRight.append(buttonHtml);
// Add click listener
html.find('[data-action="toggle-spotlight"]').click(async event => {
$(html).find('[data-action="toggle-spotlight"]').click(async event => {
event.preventDefault();
event.stopPropagation();