Fix error during ISBN lookup

This commit is contained in:
Simon Kornblith 2012-04-01 12:28:21 -04:00
parent be89e3ad17
commit 4fcee3afa4

View file

@ -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");