From fdd5feac9249e2fc7aa54b68ba4879f225eae545 Mon Sep 17 00:00:00 2001 From: wukko Date: Wed, 18 Sep 2024 00:24:54 +0600 Subject: [PATCH] web: use turnstile & session only when the processing instance has them now also always fetching server info in the save tab --- web/src/components/misc/Turnstile.svelte | 6 +++--- web/src/components/save/Omnibox.svelte | 6 ++++-- web/src/lib/api/api.ts | 12 +++++++----- web/src/lib/env.ts | 1 - web/src/lib/types/api.ts | 1 + web/src/routes/+layout.svelte | 11 +++++++++-- 6 files changed, 24 insertions(+), 13 deletions(-) diff --git a/web/src/components/misc/Turnstile.svelte b/web/src/components/misc/Turnstile.svelte index 29914995..f1c9b625 100644 --- a/web/src/components/misc/Turnstile.svelte +++ b/web/src/components/misc/Turnstile.svelte @@ -1,14 +1,14 @@ @@ -77,7 +84,7 @@
- {#if (env.TURNSTILE_KEY && $page.url.pathname === "/") || $turnstileCreated} + {#if (spawnTurnstile && $page.url.pathname === "/") || $turnstileCreated} {/if}