www

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs | Submodules | README | LICENSE

commit a4ab84eed395d62a5b32be56c563282c167da16b
parent 56d64af186f10f944446eb36fe1e638b5a9bb634
Author: Dan Stillman <dstillman@zotero.org>
Date:   Wed, 23 Nov 2016 00:41:22 -0500

Avoid CustomizableUI errors in test output

Diffstat:
Mchrome/content/zotero/icon.js | 3++-
1 file changed, 2 insertions(+), 1 deletion(-)

diff --git 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; }