diff --git a/chrome/content/zotero/xpcom/plugins.js b/chrome/content/zotero/xpcom/plugins.js index 56842e2f99..e0b4145885 100644 --- a/chrome/content/zotero/xpcom/plugins.js +++ b/chrome/content/zotero/xpcom/plugins.js @@ -143,6 +143,10 @@ Zotero.Plugins = new function () { let result; try { result = func.call(scope, params, reason); + // If bootstrap method returns a promise, wait for it + if (result && result.then) { + await result; + } } catch (e) { Zotero.logError(`Error running bootstrap method '${method}' on ${id}`);