Skip to content

Commit

Permalink
fix: replace canvas.toBlob the second parameter to file.type
Browse files Browse the repository at this point in the history
  • Loading branch information
eJayYoung committed Sep 1, 2020
1 parent d6b454e commit 1a9fb73
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/utils.js
Original file line number Diff line number Diff line change
Expand Up @@ -188,7 +188,7 @@ function handleFile(file, options, doSquash) {
blob => {
resolve(new File([blob], file.name));
},
"image/jpeg",
file.type,
quality
);
})
Expand Down

0 comments on commit 1a9fb73

Please sign in to comment.