make ScriptInterface.scriptsAllowed readonly

This commit is contained in:
blek 2023-09-03 23:48:50 +10:00
parent 220a46270e
commit 6c1ba181c2
Signed by: blek
GPG Key ID: 14546221E3595D0C
1 changed files with 1 additions and 1 deletions

View File

@ -31,7 +31,7 @@ export class WordleLibrary {
export class ScriptInterface { export class ScriptInterface {
readonly gameState: GameState = new GameState(); readonly gameState: GameState = new GameState();
scriptsAllowed: {(): boolean} = () => scriptsAllowed; readonly scriptsAllowed: {(): boolean} = () => scriptsAllowed;
readonly lib: WordleLibrary = new WordleLibrary(); readonly lib: WordleLibrary = new WordleLibrary();
} }
globalThis.ScriptInterface = new ScriptInterface(); globalThis.ScriptInterface = new ScriptInterface();