Eriku33 / Foundry-VTT-Image-Hover

Character art module for Foundry Virtual Table top
MIT License
7 stars 12 forks source link

Canvas layer isn't guaranteed to be set. #57

Closed xdy closed 7 months ago

xdy commented 7 months ago

Saw "TypeError: Error thrown in hooked function '' for hook 'hoverToken'. canvas.activeLayer is null [Detected 2 packages: image-hover, system:pf2e] showArtworkRequirements https://foundry.xdy.se:30201/modules/image-hover/image-hover.js:380" in the log. Might be an interaction with some other module/only happen in pf2e, but the fix in this commit should be safe for all systems.

Eriku33 commented 7 months ago

Hello, thanks for doing this, any chance you can make a pull request where the difference is only that single line instead of the whole file? It helps keep track of the actual changes.

Thanks.

xdy commented 7 months ago

Git is misbehaving, I'll delete the branch and redo.