Avoid CustomizableUI errors in test output
This commit is contained in:
parent
56d64af186
commit
a4ab84eed3
1 changed files with 2 additions and 1 deletions
|
@ -35,7 +35,8 @@ var comboButtonsID = 'zotero-toolbar-buttons';
|
||||||
addIcon();
|
addIcon();
|
||||||
|
|
||||||
function 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;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue