properly display script warning
This commit is contained in:
parent
fadfd21352
commit
c514cab513
|
@ -7,6 +7,7 @@
|
||||||
|
|
||||||
let currentInterface: 'game' | 'settings' = 'game';
|
let currentInterface: 'game' | 'settings' = 'game';
|
||||||
let scriptEnabled = areScriptsAllowed();
|
let scriptEnabled = areScriptsAllowed();
|
||||||
|
|
||||||
addScriptAllowedHook(() => {
|
addScriptAllowedHook(() => {
|
||||||
scriptEnabled = true;
|
scriptEnabled = true;
|
||||||
})
|
})
|
||||||
|
@ -14,7 +15,7 @@
|
||||||
|
|
||||||
<main>
|
<main>
|
||||||
<h1>blek! Wordle</h1>
|
<h1>blek! Wordle</h1>
|
||||||
{#if areScriptsAllowed()}
|
{#if scriptEnabled}
|
||||||
<p style="color:coral">
|
<p style="color:coral">
|
||||||
<Shield height='13pt' />
|
<Shield height='13pt' />
|
||||||
Scripts are allowed. The game may not be fair-played
|
Scripts are allowed. The game may not be fair-played
|
||||||
|
|
Loading…
Reference in New Issue