Fix typo in internet block check

This commit is contained in:
Guangcong Luo
2017-07-12 06:19:13 -04:00
parent b53cbaf1b6
commit 2a6cf00cd1

View File

@@ -209,7 +209,7 @@
* triggered if the login server did not return a response
*/
finishRename: function (name, assertion) {
if (assertion.slice(0, 14).toLowerCase() === '<!DOCTYPE html') {
if (assertion.slice(0, 14).toLowerCase() === '<!doctype html') {
// some sort of MitM proxy; ignore it
var endIndex = assertion.indexOf('>');
if (endIndex > 0) assertion = assertion.slice(endIndex + 1);