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

@ -4,7 +4,7 @@
"description": "Adds a button to the token hover HUD to toggle the spotlight for Daggerheart.", "description": "Adds a button to the token hover HUD to toggle the spotlight for Daggerheart.",
"url": "https://git.geeks.gay/cosmo/dh-token-spotlight", "url": "https://git.geeks.gay/cosmo/dh-token-spotlight",
"manifest": "https://git.geeks.gay/cosmo/dh-token-spotlight/raw/branch/main/module.json", "manifest": "https://git.geeks.gay/cosmo/dh-token-spotlight/raw/branch/main/module.json",
"download": "https://git.geeks.gay/cosmo/dh-token-spotlight/releases/download/1.0.0/dh-token-spotlight.zip", "download": "https://git.geeks.gay/cosmo/dh-token-spotlight/releases/download/1.0.1/dh-token-spotlight.zip",
"version": "1.0.0", "version": "1.0.0",
"compatibility": { "compatibility": {
"minimum": "13", "minimum": "13",

View file

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