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

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(