mirror of
https://github.com/smogon/pokemon-showdown-client.git
synced 2026-09-30 06:43:02 -05:00
Fix crash in MitM detection
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user