Logic.clearBrowserActionBadge method
This commit is contained in:
@@ -65,8 +65,7 @@ const Logic = {
|
||||
|
||||
init() {
|
||||
// Remove browserAction "upgraded" badge when opening panel
|
||||
browser.browserAction.setBadgeBackgroundColor({color: ""});
|
||||
browser.browserAction.setBadgeText({text: ""});
|
||||
this.clearBrowserActionBadge();
|
||||
|
||||
// Retrieve the list of identities.
|
||||
this.refreshIdentities()
|
||||
@@ -92,6 +91,11 @@ const Logic = {
|
||||
});
|
||||
},
|
||||
|
||||
clearBrowserActionBadge() {
|
||||
browser.browserAction.setBadgeBackgroundColor({color: ""});
|
||||
browser.browserAction.setBadgeText({text: ""});
|
||||
},
|
||||
|
||||
refreshIdentities() {
|
||||
return browser.runtime.sendMessage({
|
||||
method: "queryIdentities"
|
||||
|
||||
Reference in New Issue
Block a user