mirror of
https://github.com/zotero/zotero.git
synced 2026-10-08 03:08:19 +00:00
Fix integration session breaking when an error is thrown during getDocument()
This commit is contained in:
parent
59b3268d01
commit
4bc61273a0
1 changed files with 1 additions and 1 deletions
|
|
@ -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();
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue