web/Omnibox: mark url input as ready once turnstile is loaded

This commit is contained in:
dumbmoron 2024-09-14 19:12:15 +00:00
parent 95f0fbdb5e
commit 1cd57fc7ff
No known key found for this signature in database

View file

@ -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;