Add a dev hook that sets the API to be globally available on ready
This commit is contained in:
parent
920549c43b
commit
9df92bfb76
2 changed files with 7 additions and 1 deletions
5
dev/main.mjs
Normal file
5
dev/main.mjs
Normal file
|
|
@ -0,0 +1,5 @@
|
|||
import { __ID__ } from "../module/consts.mjs";
|
||||
|
||||
Hooks.on(`ready`, () => {
|
||||
globalThis.IT = game.modules.get(__ID__).api;
|
||||
});
|
||||
Loading…
Add table
Add a link
Reference in a new issue