this fixes #1257: toolbar button missing for new uBO install w/ Seamonkey 2.39

This commit is contained in:
gorhill 2016-01-19 13:30:28 -05:00
parent d584be832b
commit bb27f33b35
1 changed files with 4 additions and 1 deletions

View File

@ -2751,7 +2751,10 @@ vAPI.toolbarButton = {
break;
}
if ( document.getElementById(tbb.id) !== null ) {
// https://github.com/gorhill/uBlock/issues/763
// We are done if our toolbar button is already installed in one of the
// toolbar.
if ( palette !== null && toolbarButton.parentElement !== palette ) {
return;
}