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