From b931fc2202da3287f42a4eed3b2bf72cf0cfd744 Mon Sep 17 00:00:00 2001 From: Guangcong Luo Date: Tue, 6 Sep 2016 19:42:40 -0400 Subject: [PATCH] Fix crash in MitM detection --- js/client.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/js/client.js b/js/client.js index 19c5434e7..f03838253 100644 --- a/js/client.js +++ b/js/client.js @@ -219,7 +219,7 @@ if (assertion.charAt(0) === '\r') assertion = assertion.slice(1); if (assertion.charAt(0) === '\n') assertion = assertion.slice(1); if (assertion.indexOf('<') >= 0) { - if (assertion.indexof('accessdenied')) { + if (assertion.indexOf('accessdenied') >= 0) { app.addPopupMessage("Your internet filter is blocking Pokémon Showdown."); return; }