Skip to content

Commit

Permalink
Fix typo that makes it unusable in strict mode (#481)
Browse files Browse the repository at this point in the history
This typo makes it unusable in strict mode because it doesn't allow to create global variables in this way, and i believe you didn't want it too https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Strict_mode#Converting_mistakes_into_errors
  • Loading branch information
nolimits4web authored and thedustinsmith committed Feb 21, 2018
1 parent 1c67a9b commit 32b4f59
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion croppie.js
Original file line number Diff line number Diff line change
Expand Up @@ -1159,7 +1159,7 @@
canvasWidth = data.outputWidth || width,
canvasHeight = data.outputHeight || height,
customDimensions = (data.outputWidth && data.outputHeight),
outputWidthRatio = 1;
outputWidthRatio = 1,
outputHeightRatio = 1;

canvas.width = canvasWidth;
Expand Down

0 comments on commit 32b4f59

Please sign in to comment.