mirror of
https://github.com/wukko/cobalt.git
synced 2024-11-15 12:50:01 +00:00
web/remux: return render instead of the original file
LMFAOOOOOOO
This commit is contained in:
parent
91d09a4e89
commit
0b5b8454a9
1 changed files with 5 additions and 1 deletions
|
@ -136,7 +136,11 @@
|
||||||
if (!render) {
|
if (!render) {
|
||||||
return console.log("not a valid file");
|
return console.log("not a valid file");
|
||||||
}
|
}
|
||||||
return await downloadFile({ file });
|
return await downloadFile({
|
||||||
|
file: new File([render], file.name, {
|
||||||
|
type: render.type
|
||||||
|
})
|
||||||
|
});
|
||||||
} finally {
|
} finally {
|
||||||
processing = false;
|
processing = false;
|
||||||
file = undefined;
|
file = undefined;
|
||||||
|
|
Loading…
Reference in a new issue