From 5e1e083ff3b3cef83dc294cdcdf450dbfe2036d2 Mon Sep 17 00:00:00 2001 From: wukko Date: Mon, 19 May 2025 17:03:06 +0600 Subject: [PATCH] web/lib/download: don't wrap a file inside a file when sharing wtf --- web/src/lib/download.ts | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) 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 ], }); }