diff --git a/platform/chromium/vapi-background.js b/platform/chromium/vapi-background.js index fd13d8b9c..fd4f027a7 100644 --- a/platform/chromium/vapi-background.js +++ b/platform/chromium/vapi-background.js @@ -824,7 +824,14 @@ vAPI.setIcon = (( ) => { } } - if ( browserAction.setTitle !== undefined ) { + // 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 + ) + ) { browserAction.setTitle({ tabId: tab.id, title: titleTemplate.replace(