mirror of https://github.com/gorhill/uBlock.git
truncate pointlessly too long labels in selector
This commit is contained in:
parent
26b70a1e64
commit
6c46a89142
|
@ -628,7 +628,8 @@ var synchronizeTabIds = function(newTabIds) {
|
||||||
option = document.createElement('option');
|
option = document.createElement('option');
|
||||||
select.appendChild(option);
|
select.appendChild(option);
|
||||||
}
|
}
|
||||||
option.textContent = newTabIds[tabId];
|
// Truncate too long labels.
|
||||||
|
option.textContent = newTabIds[tabId].slice(0, 80);
|
||||||
option.value = classNameFromTabId(tabId);
|
option.value = classNameFromTabId(tabId);
|
||||||
if ( option.value === selectValue ) {
|
if ( option.value === selectValue ) {
|
||||||
select.selectedIndex = j;
|
select.selectedIndex = j;
|
||||||
|
|
Loading…
Reference in New Issue