set video download MIME

fixes #11
This commit is contained in:
ayaka 2024-08-31 10:18:05 +12:00
parent eedbe06af6
commit fdaba8344d

View File

@ -115,7 +115,7 @@ let ffmpeg = null;
var filename = toSlug(videoElement.parentNode.parentNode.id || document.title)
const data = await ffmpeg.readFile('output.mp4');
saveAs(new Blob([data.buffer]),filename);
saveAs(new Blob([data.buffer]),filename, {type: 'video/mp4'});
return
}
function saveAs(blob, filename) { // Yeah ok...