Skip to content

Commit

Permalink
fix: config export blob new FIle's otion.type as file.type
Browse files Browse the repository at this point in the history
  • Loading branch information
eJayYoung committed Sep 2, 2020
1 parent fc0d83b commit 1fb91c2
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/utils.js
Original file line number Diff line number Diff line change
Expand Up @@ -186,7 +186,9 @@ function handleFile(file, options, doSquash) {
URL.revokeObjectURL(image.src);
canvas.toBlob(
blob => {
resolve(new File([blob], file.name));
resolve(new File([blob], file.name, {
type: file.type
}));
},
file.type,
quality
Expand Down

0 comments on commit 1fb91c2

Please sign in to comment.