From 32b4f596622118b3ead737d86372cdd704cfae6f Mon Sep 17 00:00:00 2001 From: Vladimir Kharlampidi Date: Wed, 21 Feb 2018 17:17:45 +0300 Subject: [PATCH] Fix typo that makes it unusable in strict mode (#481) 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 --- croppie.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/croppie.js b/croppie.js index 00d891a6..521c0d4e 100755 --- a/croppie.js +++ b/croppie.js @@ -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;