web/Omnibox: mark url input as ready once turnstile is loaded
This commit is contained in:
parent
95f0fbdb5e
commit
1cd57fc7ff
1 changed files with 2 additions and 2 deletions
|
@ -11,7 +11,7 @@
|
|||
|
||||
import { link } from "$lib/state/omnibox";
|
||||
import { updateSetting } from "$lib/state/settings";
|
||||
import { turnstileLoaded } from "$lib/state/turnstile";
|
||||
import { turnstileCreated } from "$lib/state/turnstile";
|
||||
|
||||
import type { Optional } from "$lib/types/generic";
|
||||
import type { DownloadModeOption } from "$lib/types/settings";
|
||||
|
@ -58,7 +58,7 @@
|
|||
}
|
||||
|
||||
$: if (env.TURNSTILE_KEY) {
|
||||
if ($turnstileLoaded) {
|
||||
if ($turnstileCreated) {
|
||||
isDisabled = false;
|
||||
} else {
|
||||
isDisabled = true;
|
||||
|
|
Loading…
Reference in a new issue