mirror of
https://github.com/imputnet/cobalt.git
synced 2024-12-28 02:26:10 +00:00
parent
2fcda9c705
commit
394c1d8eaf
|
@ -136,8 +136,14 @@
|
|||
if (!render) {
|
||||
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({
|
||||
file: new File([render], file.name, {
|
||||
file: new File([render], filename, {
|
||||
type: render.type
|
||||
})
|
||||
});
|
||||
|
|
Loading…
Reference in a new issue