From e0132ab92800331136a458ab89a376a3f220b52d Mon Sep 17 00:00:00 2001 From: wukko Date: Mon, 23 Sep 2024 15:18:20 +0600 Subject: [PATCH] web/PickerItem: add `urlType` to downloading params --- web/src/components/dialog/PickerItem.svelte | 2 ++ 1 file changed, 2 insertions(+) diff --git a/web/src/components/dialog/PickerItem.svelte b/web/src/components/dialog/PickerItem.svelte index 7edf8c68..4a515a6e 100644 --- a/web/src/components/dialog/PickerItem.svelte +++ b/web/src/components/dialog/PickerItem.svelte @@ -14,6 +14,7 @@ export let number: number; let imageLoaded = false; + const isTunnel = new URL(item.url).pathname === "/tunnel"; $: itemType = item.type ?? "photo"; @@ -23,6 +24,7 @@ on:click={() => downloadFile({ url: item.url, + urlType: isTunnel ? "tunnel" : "redirect", })} >