From e2c3917ecde77d55d4fffa10103ff5eae3faab54 Mon Sep 17 00:00:00 2001 From: Raymond Hill Date: Thu, 15 Dec 2022 10:04:03 -0500 Subject: [PATCH] Unconditionally set label of toolbar icon Related feedback: - https://github.com/uBlockOrigin/uBlock-issues/discussions/2409 --- platform/common/vapi-background.js | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/platform/common/vapi-background.js b/platform/common/vapi-background.js index 6e3aa86c5..52907b8e0 100644 --- a/platform/common/vapi-background.js +++ b/platform/common/vapi-background.js @@ -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(