mirror of https://github.com/gorhill/uBlock.git
Unconditionally set label of toolbar icon
Related feedback: - https://github.com/uBlockOrigin/uBlock-issues/discussions/2409
This commit is contained in:
parent
de92a9fa25
commit
e2c3917ecd
|
@ -794,11 +794,7 @@ vAPI.setIcon = (( ) => {
|
||||||
// Insert the badge text in the title if:
|
// Insert the badge text in the title if:
|
||||||
// - the platform does not support browserAction.setIcon(); OR
|
// - the platform does not support browserAction.setIcon(); OR
|
||||||
// - the rendering of the badge is disabled
|
// - the rendering of the badge is disabled
|
||||||
if (
|
if ( browserAction.setTitle !== undefined ) {
|
||||||
browserAction.setTitle !== undefined && (
|
|
||||||
browserAction.setIcon === undefined || (parts & 0b1000) !== 0
|
|
||||||
)
|
|
||||||
) {
|
|
||||||
browserAction.setTitle({
|
browserAction.setTitle({
|
||||||
tabId: tab.id,
|
tabId: tab.id,
|
||||||
title: titleTemplate.replace(
|
title: titleTemplate.replace(
|
||||||
|
|
Loading…
Reference in New Issue