javascript - Badge color doesn't change, in firefox, using crossrider API (setBadgeText)? -
i'm using crossrider, , want change badge color of browser button
here's code (in background.js)
appapi.ready(function() {     appapi.browseraction.setbadgetext('0', [255, 127, 127, 125]); // grey color }); the code works in chrome. in firefox, cannot change badge color color other "red" ! it's red despite change in array values in background code !
how change color ?
have tried setting icon first using setresourceicon stated in docs? (for more information, see appapi.browseraction)
i used following code , works expected:
appapi.ready(function() {     // make sure have image in resources folder     appapi.browseraction.setresourceicon('images/icon.png');     appapi.browseraction.setbadgetext('icon');     appapi.browseraction.setbadgebackgroundcolor([0,0,255,100]); }); 
Comments
Post a Comment