Skip to content

best way to save what you love

web/Omnibox: don't bind the download button to a variable

wukko04d1a2f96f03
diff --git a/web/src/components/save/Omnibox.svelte b/web/src/components/save/Omnibox.svelte
index 69f4259a..bcb8fe30 100644
--- a/web/src/components/save/Omnibox.svelte
+++ b/web/src/components/save/Omnibox.svelte
@@ -1,10 +1,10 @@
<script lang="ts">
import env, { officialApiURL } from "$lib/env";
+ import { tick } from "svelte";
import { page } from "$app/stores";
import { goto } from "$app/navigation";
import { browser } from "$app/environment";
- import { SvelteComponent, tick } from "svelte";
import { t } from "$lib/i18n/translations";
@@ -33,10 +33,8 @@
import IconClipboard from "$components/icons/Clipboard.svelte";
let linkInput: Optional<HTMLInputElement>;
- let downloadButton: SvelteComponent;
let isFocused = false;
-
let isDisabled = false;
let isLoading = false;
@@ -173,7 +171,6 @@
<ClearButton click={() => ($link = "")} />
<DownloadButton
url={$link}
- bind:this={downloadButton}
bind:disabled={isDisabled}
bind:loading={isLoading}
/>