From e34d682a68ffceeaed17cc83faffbd3114e21ab0 Mon Sep 17 00:00:00 2001 From: cosmo Date: Tue, 24 Mar 2026 02:37:05 +0100 Subject: [PATCH] fix token rendering --- module.json | 2 +- scripts/main.js | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/module.json b/module.json index 8b8ab3e..4666cc8 100644 --- a/module.json +++ b/module.json @@ -4,7 +4,7 @@ "description": "Adds a button to the token hover HUD to toggle the spotlight for Daggerheart.", "url": "https://git.geeks.gay/cosmo/dh-token-spotlight", "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", "compatibility": { "minimum": "13", diff --git a/scripts/main.js b/scripts/main.js index 8b2ee9d..78e49e6 100644 --- a/scripts/main.js +++ b/scripts/main.js @@ -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();