From c2a195360a02e43d00afa419cae2572fe98e4413 Mon Sep 17 00:00:00 2001 From: Thomas Piccirello Date: Tue, 20 Mar 2018 15:35:30 -0400 Subject: [PATCH] Resolve JavaScript errors --- src/webui/www/public/login.html | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/webui/www/public/login.html b/src/webui/www/public/login.html index 7d743c73c..2f87a9100 100644 --- a/src/webui/www/public/login.html +++ b/src/webui/www/public/login.html @@ -10,7 +10,7 @@ window.onload = function() { $('username').focus(); $('username').select(); - } + }; window.addEvent('domready', function() { $('loginform').addEvent('submit', function(e) { @@ -28,7 +28,7 @@ $('password').set('value', ''); }, onFailure: function(xhr) { - if (xhr.responseText != "") { + if (xhr.responseText !== "") { $('error_msg').set('html', xhr.responseText); } else { $('error_msg').set('html', 'QBT_TR(Unable to log in, qBittorrent is probably unreachable.)QBT_TR[CONTEXT=HttpServer]');