Fix bustage
This commit is contained in:
parent
5057da9ed3
commit
7acd6f6722
|
@ -442,7 +442,7 @@ Zotero.Utilities.Translate.prototype._convertURL = function(url) {
|
||||||
var m = hostPortRe.exec(resolved);
|
var m = hostPortRe.exec(resolved);
|
||||||
if(!m) {
|
if(!m) {
|
||||||
throw new Error("Invalid URL supplied for HTTP request: "+url);
|
throw new Error("Invalid URL supplied for HTTP request: "+url);
|
||||||
} else {
|
} else if(this._translate.document && this._translate.document.location) {
|
||||||
var loc = this._translate.document.location;
|
var loc = this._translate.document.location;
|
||||||
if(this._translate._currentState !== "translate" && doc
|
if(this._translate._currentState !== "translate" && doc
|
||||||
&& (m[0].toLowerCase() !== loc.protocol.toLowerCase()
|
&& (m[0].toLowerCase() !== loc.protocol.toLowerCase()
|
||||||
|
|
Loading…
Reference in New Issue
Block a user