Skip to content

Commit

Permalink
Merge pull request #5 from tomka/issues/fix-quality-parameter
Browse files Browse the repository at this point in the history
Fix quality parameter for getDataURL()
  • Loading branch information
thenickdude committed May 7, 2019
2 parents 8f888e2 + 4db9b4c commit ca975dd
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/WebMWriter.js
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@
*/
function renderAsWebP(canvas, quality) {
var
frame = canvas.toDataURL('image/webp', {quality: quality});
frame = canvas.toDataURL('image/webp', quality);

return decodeBase64WebPDataURL(frame);
}
Expand Down Expand Up @@ -618,7 +618,7 @@
}

var
webP = renderAsWebP(canvas, {quality: options.quality});
webP = renderAsWebP(canvas, options.quality);

if (!webP) {
throw "Couldn't decode WebP frame, does the browser support WebP?";
Expand Down

0 comments on commit ca975dd

Please sign in to comment.