From 1be2d69f1e1ab62fa6ee88876d5963b2537d0690 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Adomas=20Ven=C4=8Dkauskas?= Date: Mon, 25 Apr 2022 12:43:48 +0300 Subject: [PATCH] Log integration invocations before other integration actions --- chrome/content/zotero/xpcom/integration.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/chrome/content/zotero/xpcom/integration.js b/chrome/content/zotero/xpcom/integration.js index abe8874652..e66c67da47 100644 --- a/chrome/content/zotero/xpcom/integration.js +++ b/chrome/content/zotero/xpcom/integration.js @@ -219,6 +219,7 @@ Zotero.Integration = new function() { */ this.execCommand = async function(agent, command, docId, templateVersion=0) { var document, session, documentImported; + Zotero.debug(`Integration: ${agent}-${command}${docId ? `:'${docId}'` : ''} invoked`) if (Zotero.Integration.warnOutdatedTemplate(agent, templateVersion)) return; if (Zotero.Integration.currentDoc) { @@ -230,7 +231,6 @@ Zotero.Integration = new function() { return; } Zotero.Integration.currentDoc = true; - Zotero.debug(`Integration: ${agent}-${command}${docId ? `:'${docId}'` : ''} invoked`) var startTime = (new Date()).getTime();