expose addScriptAllowedHook to ScriptInterface.addScriptAllowedHook

This commit is contained in:
blek 2023-09-04 00:21:47 +10:00
parent c514cab513
commit 43dc5c2d0d
Signed by: blek
GPG Key ID: 14546221E3595D0C
1 changed files with 1 additions and 0 deletions

View File

@ -49,6 +49,7 @@ export class ScriptInterface {
readonly gameState: GameState = new GameState();
readonly scriptsAllowed: {(): boolean} = areScriptsAllowed;
readonly lib: WordleLibrary = new WordleLibrary();
readonly addScriptAllowedHook = addScriptAllowedHook;
}
globalThis.ScriptInterface = new ScriptInterface();
const si = globalThis.ScriptInterface;