From 9ecd90218ca1ebe629a5ba85f2afbbbc05aba5d5 Mon Sep 17 00:00:00 2001 From: yflory Date: Tue, 5 Mar 2019 11:17:20 +0100 Subject: [PATCH] Fix undefined croppie blocking avatar upload --- www/profile/inner.js | 4 ++++ 1 file changed, 4 insertions(+) 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; }