properly display script warning

This commit is contained in:
blek 2023-09-04 00:13:32 +10:00
parent fadfd21352
commit c514cab513
Signed by: blek
GPG Key ID: 14546221E3595D0C
1 changed files with 2 additions and 1 deletions

View File

@ -7,6 +7,7 @@
let currentInterface: 'game' | 'settings' = 'game';
let scriptEnabled = areScriptsAllowed();
addScriptAllowedHook(() => {
scriptEnabled = true;
})
@ -14,7 +15,7 @@
<main>
<h1>blek! Wordle</h1>
{#if areScriptsAllowed()}
{#if scriptEnabled}
<p style="color:coral">
<Shield height='13pt' />
Scripts are allowed. The game may not be fair-played