Fix undefined croppie blocking avatar upload

pull/1/head
yflory 6 years ago
parent 6e5684c9ae
commit 9ecd90218c

@ -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; }

Loading…
Cancel
Save