mirror of
https://github.com/imputnet/cobalt.git
synced 2025-06-28 01:18:27 +00:00
web/Omnibox: mark url input as ready once turnstile is loaded
This commit is contained in:
parent
95f0fbdb5e
commit
1cd57fc7ff
@ -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 New Issue
Block a user