From 8b761dbab5c5b468a30e94594f6e12e27beee9de Mon Sep 17 00:00:00 2001 From: Kload Date: Sat, 23 Nov 2013 13:31:30 +0100 Subject: [PATCH] bugfix --- js/app.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/js/app.js b/js/app.js index 8f38c291..fb968064 100644 --- a/js/app.js +++ b/js/app.js @@ -99,7 +99,7 @@ app = Sammy('#main', function (sam) { c.flash('fail', 'Wrong password'); if (xhr.status == 401) { c.flash('fail', 'Wrong password'); - } else if (typeof xhr.responseJSON !== undefined) { + } else if (typeof xhr.responseJSON !== 'undefined') { c.flash('fail', xhr.responseJSON.error); } else { if (uri == '/postinstall') {