mirror of
https://github.com/gorhill/uBlock.git
synced 2024-10-04 08:37:11 +02:00
toolbar icon: no need to keep looking for a spot once one found
This commit is contained in:
parent
88dac6d4a1
commit
475f80239a
@ -2445,7 +2445,7 @@ vAPI.toolbarButton = {
|
|||||||
if ( !currentsetString ) {
|
if ( !currentsetString ) {
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
var currentset = currentsetString.split(',');
|
var currentset = currentsetString.split(/\s*,\s*/);
|
||||||
var index = currentset.indexOf(tbb.id);
|
var index = currentset.indexOf(tbb.id);
|
||||||
if ( index === -1 ) {
|
if ( index === -1 ) {
|
||||||
continue;
|
continue;
|
||||||
@ -2459,6 +2459,7 @@ vAPI.toolbarButton = {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
toolbar.insertItem(tbb.id, before);
|
toolbar.insertItem(tbb.id, before);
|
||||||
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
if ( document.getElementById(tbb.id) !== null ) {
|
if ( document.getElementById(tbb.id) !== null ) {
|
||||||
|
Loading…
Reference in New Issue
Block a user