From 7acd6f6722e2e081bf469f60fbd45786cb054e64 Mon Sep 17 00:00:00 2001 From: Simon Kornblith Date: Sun, 2 Oct 2011 19:43:41 +0000 Subject: [PATCH] Fix bustage --- chrome/content/zotero/xpcom/utilities_translate.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/chrome/content/zotero/xpcom/utilities_translate.js b/chrome/content/zotero/xpcom/utilities_translate.js index fab378e6e1..b25b46a078 100644 --- a/chrome/content/zotero/xpcom/utilities_translate.js +++ b/chrome/content/zotero/xpcom/utilities_translate.js @@ -442,7 +442,7 @@ Zotero.Utilities.Translate.prototype._convertURL = function(url) { var m = hostPortRe.exec(resolved); if(!m) { 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; if(this._translate._currentState !== "translate" && doc && (m[0].toLowerCase() !== loc.protocol.toLowerCase()