Skip to content

best way to save what you love

web/lib/download: don't wrap a file inside a file when sharing

wukko5e1e083ff3b3
diff --git a/web/src/lib/download.ts b/web/src/lib/download.ts
index 7a126a92..8e298243 100644
--- a/web/src/lib/download.ts
+++ b/web/src/lib/download.ts
@@ -47,11 +47,7 @@ export const openFile = (file: File) => {
export const shareFile = async (file: File) => {
return await navigator?.share({
- files: [
- new File([file], file.name, {
- type: file.type,
- }),
- ],
+ files: [ file ],
});
}