I'm trying to get the badgeText of the current Tab to display that in the popup.html
. But when I use chrome.browserAction.getBadgeText
, i'm getting a blank value as the result even when I can see the badge text on the icon.
I'm using Manifest version 2. And added below code in popup.js file.
Below is the code i'm using:
chrome.browserAction.getBadgeText({}, function(result) {
console.log(result);
});