Fix undefined croppie blocking avatar upload

pull/1/head
yflory 2019-03-05 11:17:20 +01:00
parent 6e5684c9ae
commit 9ecd90218c
1 changed files with 4 additions and 0 deletions

View File

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