From c514cab51381b5b7e64ad141f6e90439334778e6 Mon Sep 17 00:00:00 2001 From: blek Date: Mon, 4 Sep 2023 00:13:32 +1000 Subject: [PATCH] properly display script warning --- src/App.svelte | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/App.svelte b/src/App.svelte index 0d8971b..abb0b58 100644 --- a/src/App.svelte +++ b/src/App.svelte @@ -7,6 +7,7 @@ let currentInterface: 'game' | 'settings' = 'game'; let scriptEnabled = areScriptsAllowed(); + addScriptAllowedHook(() => { scriptEnabled = true; }) @@ -14,7 +15,7 @@

blek! Wordle

- {#if areScriptsAllowed()} + {#if scriptEnabled}

Scripts are allowed. The game may not be fair-played