expose addScriptAllowedHook to ScriptInterface.addScriptAllowedHook
This commit is contained in:
parent
c514cab513
commit
43dc5c2d0d
|
@ -49,6 +49,7 @@ export class ScriptInterface {
|
||||||
readonly gameState: GameState = new GameState();
|
readonly gameState: GameState = new GameState();
|
||||||
readonly scriptsAllowed: {(): boolean} = areScriptsAllowed;
|
readonly scriptsAllowed: {(): boolean} = areScriptsAllowed;
|
||||||
readonly lib: WordleLibrary = new WordleLibrary();
|
readonly lib: WordleLibrary = new WordleLibrary();
|
||||||
|
readonly addScriptAllowedHook = addScriptAllowedHook;
|
||||||
}
|
}
|
||||||
globalThis.ScriptInterface = new ScriptInterface();
|
globalThis.ScriptInterface = new ScriptInterface();
|
||||||
const si = globalThis.ScriptInterface;
|
const si = globalThis.ScriptInterface;
|
||||||
|
|
Loading…
Reference in New Issue