fix token rendering
This commit is contained in:
parent
b13fbd5328
commit
e34d682a68
2 changed files with 3 additions and 3 deletions
|
|
@ -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",
|
||||
|
|
|
|||
|
|
@ -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();
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue