From a334e1f462b2ebafd2f3e1108f075ed5f0bb4811 Mon Sep 17 00:00:00 2001 From: aurimasv Date: Tue, 7 Jan 2014 22:02:15 -0600 Subject: [PATCH] Use documentURI/URL instead of location.href. document.location is null after the document is detached from its parent window (e.g. after we navigate to a different page in the same hidden browser) --- chrome/content/zotero/xpcom/translation/translate.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/chrome/content/zotero/xpcom/translation/translate.js b/chrome/content/zotero/xpcom/translation/translate.js index 988081326..ca827f806 100644 --- a/chrome/content/zotero/xpcom/translation/translate.js +++ b/chrome/content/zotero/xpcom/translation/translate.js @@ -132,7 +132,7 @@ Zotero.Translate.Sandbox = { var nAttachments = attachments.length; for(var j=0; j