Merge pull request #169 from aurimasv/connector-proxy
Fix typo in proxy detection.
This commit is contained in:
commit
387e9e4fc0
1 changed files with 1 additions and 1 deletions
|
@ -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()]) {
|
||||||
|
|
Loading…
Reference in a new issue