diff --git a/chrome/content/zotero/icon.js b/chrome/content/zotero/icon.js index c05cae6fe..09d311d1a 100644 --- a/chrome/content/zotero/icon.js +++ b/chrome/content/zotero/icon.js @@ -35,7 +35,8 @@ var comboButtonsID = 'zotero-toolbar-buttons'; addIcon(); function addIcon() { - if (Zotero.toolbarIconAdded) { + // Don't try to add icons more than once, and avoid warnings in tests + if (Zotero.toolbarIconAdded || CustomizableUI.getPlacementOfWidget(comboButtonsID)) { return; }