Skip to content

Commit

Permalink
Update about-face.js
Browse files Browse the repository at this point in the history
Fix #72.
  • Loading branch information
mclemente committed Jan 4, 2024
1 parent 5ad09e8 commit 549dabb
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions about-face.js
Original file line number Diff line number Diff line change
Expand Up @@ -67,8 +67,12 @@ Hooks.on("canvasReady", async () => {
});
Hooks.on("preCreateToken", onPreCreateToken);
Hooks.on("preUpdateToken", onPreUpdateToken);
Hooks.on("createToken", (tokenDocument, options, userId) => drawAboutFaceIndicator(tokenDocument.object));
Hooks.on("updateToken", (tokenDocument, changes, options, userId) => drawAboutFaceIndicator(tokenDocument.object));
Hooks.on("createToken", (tokenDocument, options, userId) => {
if (tokenDocument.object) drawAboutFaceIndicator(tokenDocument.object);
});
Hooks.on("updateToken", (tokenDocument, changes, options, userId) => {
if (tokenDocument.object) drawAboutFaceIndicator(tokenDocument.object);
});
Hooks.on("refreshToken", (token, options) => {
if (options.redrawEffects) drawAboutFaceIndicator(token);
});
Expand Down

0 comments on commit 549dabb

Please sign in to comment.