mirror of
https://github.com/bitwarden/browser
synced 2025-12-13 23:03:32 +00:00
update connection on lock state changes
This commit is contained in:
@@ -80,14 +80,11 @@ export default class RuntimeBackground {
|
||||
async processMessage(msg: any, sender: any, sendResponse: any) {
|
||||
switch (msg.command) {
|
||||
case 'loggedIn':
|
||||
await this.main.setIcon();
|
||||
await this.main.refreshBadgeAndMenu(false);
|
||||
this.notificationsService.updateConnection();
|
||||
break;
|
||||
case 'unlocked':
|
||||
case 'locked':
|
||||
await this.main.setIcon();
|
||||
await this.main.refreshBadgeAndMenu(msg.command === 'locked');
|
||||
this.notificationsService.updateConnection();
|
||||
break;
|
||||
case 'logout':
|
||||
await this.main.logout(msg.expired);
|
||||
|
||||
Reference in New Issue
Block a user