From 0d9a82226e0ebd8cdeaba1b07caa2a24dc9f25ae Mon Sep 17 00:00:00 2001 From: Duygu Date: Fri, 14 Jul 2017 15:55:08 +0300 Subject: [PATCH] Fix default value of Croppie size parameter (#335) --- croppie.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/croppie.js b/croppie.js index fa2f8277..868ea4fb 100755 --- a/croppie.js +++ b/croppie.js @@ -1175,7 +1175,7 @@ data = _get.call(self), opts = deepExtend(RESULT_DEFAULTS, deepExtend({}, options)), resultType = (typeof (options) === 'string' ? options : (opts.type || 'base64')), - size = opts.size, + size = opts.size || 'viewport', format = opts.format, quality = opts.quality, backgroundColor = opts.backgroundColor,