Merge pull request #169 from aurimasv/connector-proxy

Fix typo in proxy detection.
This commit is contained in:
Simon Kornblith 2012-09-21 16:43:47 -07:00
commit 387e9e4fc0

View file

@ -160,7 +160,7 @@ Zotero.Translators = new function() {
if(m) { if(m) {
// First, drop the 0- if it exists (this is an III invention) // First, drop the 0- if it exists (this is an III invention)
var host = m[2]; var host = m[2];
if(host.substr(0, 2) === "0-") host = substr(2); if(host.substr(0, 2) === "0-") host = host.substr(2);
var hostnames = host.split("."); var hostnames = host.split(".");
for(var i=1; i<hostnames.length-2; i++) { for(var i=1; i<hostnames.length-2; i++) {
if(TLDS[hostnames[i].toLowerCase()]) { if(TLDS[hostnames[i].toLowerCase()]) {