diff --git a/www/profile/inner.js b/www/profile/inner.js index b8f2ed31d..75f1a0753 100644 --- a/www/profile/inner.js +++ b/www/profile/inner.js @@ -260,6 +260,10 @@ define([ 'class': 'cp-app-profile-resizer' }); + if (typeof ($croppie.croppie) !== "function") { + return void cb(file); + } + var todo = function () { UI.confirm($croppie[0], function (yes) { if (!yes) { return; }