Skip to content

Commit

Permalink
error handling (#49)
Browse files Browse the repository at this point in the history
* error handling

* create new version for release
  • Loading branch information
elam-scottlogic authored May 29, 2023
1 parent acd5d22 commit 479cbec
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 24 deletions.
2 changes: 1 addition & 1 deletion image-hover.js
Original file line number Diff line number Diff line change
Expand Up @@ -464,7 +464,7 @@ Hooks.on("createToken", (token, options, userId) => {
* @param {Boolean} hovered if token is mouseovered
*/
Hooks.on("hoverToken", (token, hovered) => {
if (showSpecificArt) return;
if (showSpecificArt || canvas.hud.imageHover === undefined) return;
if (!hovered) {
canvas.hud.imageHover.clear();
return;
Expand Down
44 changes: 21 additions & 23 deletions module.json
Original file line number Diff line number Diff line change
@@ -1,28 +1,26 @@
{
"name": "image-hover",
"title": "Image Hover",
"description": "This module allows users to see the character art while hovering over a token.",
"author": "Eriku",
"authors": [
{
"name": "image-hover",
"title": "Image Hover",
"description": "This module allows users to see the character art while hovering over a token.",
"author": "Eriku",
"authors": [
{
"name": "Eriku",
"discord": "Eriku#2108",
"url": "https://github.com/Eriku33"
}
],
"version": "3.0.1",
"compatibility": {
"minimum": "10",
"verified": "10.291"
},
"socket": true,
"esmodules": [
"image-hover.js"
],
"url": "https://github.com/Eriku33/Foundry-VTT-Image-Hover",
"manifest": "https://github.com/Eriku33/Foundry-VTT-Image-Hover/releases/download/3.0.1/module.json",
"download": "https://github.com/Eriku33/Foundry-VTT-Image-Hover/releases/download/3.0.1/module.zip",
"readme": "https://github.com/Eriku33/Foundry-VTT-Image-Hover/blob/main/README.md",
"bugs": "https://github.com/Eriku33/Foundry-VTT-Image-Hover/issues",
"changelog": "https://github.com/Eriku33/Foundry-VTT-Image-Hover/blob/main/CHANGELOG.md"
}
],
"version": "3.0.2",
"compatibility": {
"minimum": "10",
"verified": "10.291"
},
"socket": true,
"esmodules": ["image-hover.js"],
"url": "https://github.com/Eriku33/Foundry-VTT-Image-Hover",
"manifest": "https://github.com/Eriku33/Foundry-VTT-Image-Hover/releases/download/3.0.2/module.json",
"download": "https://github.com/Eriku33/Foundry-VTT-Image-Hover/releases/download/3.0.2/module.zip",
"readme": "https://github.com/Eriku33/Foundry-VTT-Image-Hover/blob/main/README.md",
"bugs": "https://github.com/Eriku33/Foundry-VTT-Image-Hover/issues",
"changelog": "https://github.com/Eriku33/Foundry-VTT-Image-Hover/blob/main/CHANGELOG.md"
}

0 comments on commit 479cbec

Please sign in to comment.