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