web/PickerItem: add urlType
to downloading params
This commit is contained in:
parent
402b4b6485
commit
e0132ab928
1 changed files with 2 additions and 0 deletions
|
@ -14,6 +14,7 @@
|
|||
export let number: number;
|
||||
|
||||
let imageLoaded = false;
|
||||
const isTunnel = new URL(item.url).pathname === "/tunnel";
|
||||
|
||||
$: itemType = item.type ?? "photo";
|
||||
</script>
|
||||
|
@ -23,6 +24,7 @@
|
|||
on:click={() =>
|
||||
downloadFile({
|
||||
url: item.url,
|
||||
urlType: isTunnel ? "tunnel" : "redirect",
|
||||
})}
|
||||
>
|
||||
<div class="picker-type">
|
||||
|
|
Loading…
Reference in a new issue