mirror of
https://github.com/imputnet/cobalt.git
synced 2025-06-29 09:58:27 +00:00
parent
2fcda9c705
commit
394c1d8eaf
@ -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 New Issue
Block a user