Unconditionally set label of toolbar icon

Related feedback:
- https://github.com/uBlockOrigin/uBlock-issues/discussions/2409
This commit is contained in:
Raymond Hill 2022-12-15 10:04:03 -05:00
parent de92a9fa25
commit e2c3917ecd
No known key found for this signature in database
GPG Key ID: 25E1490B761470C2
1 changed files with 1 additions and 5 deletions

View File

@ -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(