From 121824da42f63bbb60fd0ca430b7561ffda0dc18 Mon Sep 17 00:00:00 2001 From: "Cathy J. Fitzpatrick" Date: Fri, 31 May 2013 06:32:14 -0500 Subject: [PATCH] Minor stylistic changes --- js/client.js | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/js/client.js b/js/client.js index 6e281f3da..fdcc896d8 100644 --- a/js/client.js +++ b/js/client.js @@ -276,7 +276,7 @@ }); this.user.on('login:invalidname', function(name, reason) { - app.addPopup(LoginPopup, {name: name, reason: reason}); + self.addPopup(LoginPopup, {name: name, reason: reason}); }); this.user.on('login:authrequired', function(name) { @@ -334,8 +334,7 @@ if ((document.location.hostname !== Config.origindomain) && !Config.testclient) { // Handle *.psim.us. return this.initializeCrossDomainConnection(); - } - if (Config.testclient) { + } else if (Config.testclient) { this.initializeTestClient(); } else if (document.location.protocol === 'https:') { if (!$.cookie('showdown_ssl')) {