Skip to content

Commit

Permalink
web/PickerItem: add urlType to downloading params
Browse files Browse the repository at this point in the history
  • Loading branch information
wukko committed Sep 23, 2024
1 parent 402b4b6 commit e0132ab
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions web/src/components/dialog/PickerItem.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
export let number: number;
let imageLoaded = false;
const isTunnel = new URL(item.url).pathname === "/tunnel";
$: itemType = item.type ?? "photo";
</script>
Expand All @@ -23,6 +24,7 @@
on:click={() =>
downloadFile({
url: item.url,
urlType: isTunnel ? "tunnel" : "redirect",
})}
>
<div class="picker-type">
Expand Down

0 comments on commit e0132ab

Please sign in to comment.