Add a dev hook that sets the API to be globally available on ready

This commit is contained in:
Oliver 2026-02-07 00:23:10 -07:00
parent 920549c43b
commit 9df92bfb76
2 changed files with 7 additions and 1 deletions

5
dev/main.mjs Normal file
View file

@ -0,0 +1,5 @@
import { __ID__ } from "../module/consts.mjs";
Hooks.on(`ready`, () => {
globalThis.IT = game.modules.get(__ID__).api;
});