parent
2fcda9c705
commit
394c1d8eaf
1 changed files with 7 additions and 1 deletions
|
@ -136,8 +136,14 @@
|
||||||
if (!render) {
|
if (!render) {
|
||||||
return console.log("not a valid file");
|
return console.log("not a valid file");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
const filenameParts = file.name.split(".");
|
||||||
|
const filenameExt = filenameParts.pop();
|
||||||
|
|
||||||
|
const filename = `${filenameParts.join(".")} (remux).${filenameExt}`;
|
||||||
|
|
||||||
return await downloadFile({
|
return await downloadFile({
|
||||||
file: new File([render], file.name, {
|
file: new File([render], filename, {
|
||||||
type: render.type
|
type: render.type
|
||||||
})
|
})
|
||||||
});
|
});
|
||||||
|
|
Loading…
Reference in a new issue