mirror of
https://github.com/wukko/cobalt.git
synced 2025-05-29 04:50:13 +02:00
web/lib/download: don't wrap a file inside a file when sharing
wtf
This commit is contained in:
parent
b6693cd4b2
commit
5e1e083ff3
@ -47,11 +47,7 @@ export const openFile = (file: File) => {
|
|||||||
|
|
||||||
export const shareFile = async (file: File) => {
|
export const shareFile = async (file: File) => {
|
||||||
return await navigator?.share({
|
return await navigator?.share({
|
||||||
files: [
|
files: [ file ],
|
||||||
new File([file], file.name, {
|
|
||||||
type: file.type,
|
|
||||||
}),
|
|
||||||
],
|
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user