commit 4fcee3afa4c8ce3e389f9441614bfae9828fb67f
parent be89e3ad17fa64848f765cfd99bc509c904806d5
Author: Simon Kornblith <simon@simonster.com>
Date: Sun, 1 Apr 2012 12:28:21 -0400
Fix error during ISBN lookup
Diffstat:
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
@@ -242,7 +242,7 @@ Zotero.Utilities.Translate.prototype.processDocuments = function(urls, processor
}
for(var i=0; i<urls.length; i++) {
- if("document" in this._translate && "location" in this._translate.document
+ if(this._translate.document && this._translate.document.location
&& this._translate.document.location.toString() === urls[i]) {
// Document is attempting to reload itself
Zotero.debug("Translate: Attempted to load the current document using processDocuments; using loaded document instead");