mirror of
https://github.com/gorhill/uBlock.git
synced 2024-11-10 09:07:54 +01:00
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
1 changed files with 1 additions and 5 deletions
|
@ -794,11 +794,7 @@ vAPI.setIcon = (( ) => {
|
|||
// Insert the badge text in the title if:
|
||||
// - the platform does not support browserAction.setIcon(); OR
|
||||
// - the rendering of the badge is disabled
|
||||
if (
|
||||
browserAction.setTitle !== undefined && (
|
||||
browserAction.setIcon === undefined || (parts & 0b1000) !== 0
|
||||
)
|
||||
) {
|
||||
if ( browserAction.setTitle !== undefined ) {
|
||||
browserAction.setTitle({
|
||||
tabId: tab.id,
|
||||
title: titleTemplate.replace(
|
||||
|
|
Loading…
Reference in a new issue