Confirmed users, Bureaucrats and Sysops emeriti
2,088
edits
No edit summary |
|||
| Line 14: | Line 14: | ||
<statusbar id="status-bar"> | <statusbar id="status-bar"> | ||
<hbox id=" | <hbox id="myBox"> | ||
... | ... | ||
</hbox> | </hbox> | ||
| Line 22: | Line 22: | ||
<toolbarpalette id="BrowserToolbarPalette"> | <toolbarpalette id="BrowserToolbarPalette"> | ||
<toolbaritem id=" | <toolbaritem id="myAddonItem"> | ||
<hbox id=" | <hbox id="myBox"> | ||
... | ... | ||
</hbox> | </hbox> | ||
| Line 34: | Line 34: | ||
let addonBar = document.getElementById("addon-bar"); | let addonBar = document.getElementById("addon-bar"); | ||
let currentSet = addonBar.currentSet; | let currentSet = addonBar.currentSet; | ||
if (currentSet.indexOf(" | if (currentSet.indexOf("myAddonItem") == -1) { | ||
addonBar.currentSet += ", | addonBar.currentSet += ",myAddonItem"; | ||
addonBar.setAttribute("currentset", addonBar.currentSet); | addonBar.setAttribute("currentset", addonBar.currentSet); | ||
document.persist("addon-bar", "currentset"); | document.persist("addon-bar", "currentset"); | ||