mirror of
https://github.com/imputnet/cobalt.git
synced 2026-11-01 15:25:56 +00:00
web/lib/download: don't wrap a file inside a file when sharing
wtf
This commit is contained in:
parent
b6693cd4b2
commit
5e1e083ff3
1 changed files with 1 additions and 5 deletions
|
|
@ -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 ],
|
||||
});
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue