diff --git a/chrome/content/zotero/xpcom/integration.js b/chrome/content/zotero/xpcom/integration.js index fa8e6c5a82..ff546191e7 100644 --- a/chrome/content/zotero/xpcom/integration.js +++ b/chrome/content/zotero/xpcom/integration.js @@ -387,6 +387,12 @@ Zotero.Integration = new function() { if(doc) { try { doc.cleanup(); + + // Call complete function if one exists + if(doc.wrappedJSObject && doc.wrappedJSObject.complete) { + doc.wrapped.JSObject.complete(); + } + doc.activate(); } catch(e) { Zotero.logError(e);