Node.js based forum software built for the modern web
prevent js crash if responseJSON is undefined
barisusaklib33365346445
diff --git a/public/src/modules/uploader.js b/public/src/modules/uploader.jsindex d2f7612c0e..6efdbd988c 100644--- a/public/src/modules/uploader.js+++ b/public/src/modules/uploader.js@@ -49,7 +49,7 @@ define('uploader', ['csrf'], function(csrf) {},error: function(xhr) {xhr = maybeParse(xhr);- showAlert('error', xhr.responseJSON.error);+ showAlert('error', xhr.responseJSON ? xhr.responseJSON.error : 'error uploading, code : ' + xhr.status);},uploadProgress: function(event, position, total, percent) {