diff --git a/chrome/content/zotero/xpcom/translation/translate.js b/chrome/content/zotero/xpcom/translation/translate.js index 11ca3ac5cf..486980d314 100644 --- a/chrome/content/zotero/xpcom/translation/translate.js +++ b/chrome/content/zotero/xpcom/translation/translate.js @@ -1428,7 +1428,7 @@ Zotero.Translate.Web.prototype._getTranslatorsGetPotentialTranslators = function Zotero.Translate.Web.prototype._getSandboxLocation = function() { if(this._parentTranslator) { return this._parentTranslator._sandboxLocation; - } else if("defaultView" in this.document) { + } else if(this.document.defaultView) { return this.document.defaultView; } else { return this.document.location.toString();