Fix undefined croppie blocking avatar upload
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…
Reference in New Issue