Skip to content

Commit

Permalink
Merge branch 'master' of https://github.com/mclemente/about-face
Browse files Browse the repository at this point in the history
  • Loading branch information
mclemente committed Nov 6, 2022
2 parents 4837c91 + 91a4bfc commit c0ad669
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions about-face.js
Original file line number Diff line number Diff line change
Expand Up @@ -37,8 +37,8 @@ Hooks.once("init", () => {
precedence: CONST.KEYBINDING_PRECEDENCE.NORMAL,
});
});
Hooks.on("canvasReady", () => {
if (canvas.scene?.flags?.[MODULE_ID] == undefined) canvas.scene.setFlag(MODULE_ID, "sceneEnabled", true);
Hooks.on("canvasReady", async () => {
if (canvas.scene?.flags?.[MODULE_ID] == null) await canvas.scene.setFlag(MODULE_ID, "sceneEnabled", true);
if (canvas.scene?.flags?.[MODULE_ID].sceneEnabled) canvas.scene.tokens.forEach((tokenDocument) => drawAboutFaceIndicator(tokenDocument.object));
});
Hooks.on("preCreateToken", onPreCreateToken);
Expand Down

0 comments on commit c0ad669

Please sign in to comment.