Avoid CustomizableUI errors in test output

This commit is contained in:
Dan Stillman 2016-11-23 00:41:22 -05:00
parent 56d64af186
commit a4ab84eed3

View file

@ -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;
}