diff --git a/chrome/content/zotero/xpcom/integration.js b/chrome/content/zotero/xpcom/integration.js index 945be019ac..6293cbe0fb 100644 --- a/chrome/content/zotero/xpcom/integration.js +++ b/chrome/content/zotero/xpcom/integration.js @@ -329,7 +329,7 @@ Zotero.Integration = new function() { if (document) { try { await document.cleanup(); - if (!Zotero.Integration.currentSession._dontActivateDocument) { + if (!Zotero.Integration.currentSession?._dontActivateDocument) { await document.activate(); }