Fix crash in MitM detection

This commit is contained in:
Guangcong Luo
2016-09-06 19:42:40 -04:00
parent 7a92804a74
commit b931fc2202

View File

@@ -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;
}