"badge value %s" added in the extension icon title automatically

%3CLINGO-SUB%20id%3D%22lingo-sub-2015925%22%20slang%3D%22en-US%22%3E%22badge%20value%20%25s%22%20added%20in%20the%20extension%20icon%20title%20automatically%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2015925%22%20slang%3D%22en-US%22%3E%3CPRE%20class%3D%22lia-code-sample%20language-applescript%22%3E%3CCODE%3Echrome.browserAction.setBadgeText(%7Btext%3A%20'badge_text'%7D)%0Achrome.browserAction.setTitle(%7Btitle%3A%20'title_text'%7D)%3C%2FCODE%3E%3C%2FPRE%3E%3CP%3EI%20find%20above%20code%20will%20set%20the%20extension%20title%20to%20%22title_text%2C%20badge%20value%20badget_text%22%3C%2FP%3E%3CP%3EPlease%20don't%20do%20this%20unnecessary%20work.%3C%2FP%3E%3C%2FLINGO-BODY%3E
Visitor
chrome.browserAction.setBadgeText({text: 'badge_text'})
chrome.browserAction.setTitle({title: 'title_text'})

I find above code will set the extension title to "title_text, badge value badget_text"

Please don't do this unnecessary work.

0 Replies