Commit 6e895532 authored by Steffen van Bergerem's avatar Steffen van Bergerem

Fix uncaught type error for mobile avatar upload

parent 0c1483b1
......@@ -38,7 +38,7 @@
/* flash message prompt */
var message = Diaspora.I18n.t("photo_uploader.looking_good");
app.flashMessages.success(message);
if(app.flashMessages) { app.flashMessages.success(message); }
var id = responseJSON.data.photo.id;
var url = responseJSON.data.photo.unprocessed_image.url;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment