Logic.clearBrowserActionBadge method
This commit is contained in:
parent
4a48a7debb
commit
3805f12e17
1 changed files with 6 additions and 2 deletions
|
@ -65,8 +65,7 @@ const Logic = {
|
||||||
|
|
||||||
init() {
|
init() {
|
||||||
// Remove browserAction "upgraded" badge when opening panel
|
// Remove browserAction "upgraded" badge when opening panel
|
||||||
browser.browserAction.setBadgeBackgroundColor({color: ""});
|
this.clearBrowserActionBadge();
|
||||||
browser.browserAction.setBadgeText({text: ""});
|
|
||||||
|
|
||||||
// Retrieve the list of identities.
|
// Retrieve the list of identities.
|
||||||
this.refreshIdentities()
|
this.refreshIdentities()
|
||||||
|
@ -92,6 +91,11 @@ const Logic = {
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
|
|
||||||
|
clearBrowserActionBadge() {
|
||||||
|
browser.browserAction.setBadgeBackgroundColor({color: ""});
|
||||||
|
browser.browserAction.setBadgeText({text: ""});
|
||||||
|
},
|
||||||
|
|
||||||
refreshIdentities() {
|
refreshIdentities() {
|
||||||
return browser.runtime.sendMessage({
|
return browser.runtime.sendMessage({
|
||||||
method: "queryIdentities"
|
method: "queryIdentities"
|
||||||
|
|
Loading…
Add table
Reference in a new issue