diff --git a/jslib b/jslib index 3d02a1ecb8..2dc77b6143 160000 --- a/jslib +++ b/jslib @@ -1 +1 @@ -Subproject commit 3d02a1ecb8cdb945f3bee2fbb6921b40286575a1 +Subproject commit 2dc77b6143f59d45fef762a64c353db14d12bb1d diff --git a/src/background/main.background.ts b/src/background/main.background.ts index c4dafb2602..2faf00dd6d 100644 --- a/src/background/main.background.ts +++ b/src/background/main.background.ts @@ -145,7 +145,7 @@ export default class MainBackground { this.cryptoService, this.platformUtilsService, this.storageService, this.messagingService, this.searchService, async () => { if (this.notificationsService != null) { - this.notificationsService.updateConnection(); + this.notificationsService.updateConnection(false); } await this.setIcon(); await this.refreshBadgeAndMenu(true); @@ -281,7 +281,7 @@ export default class MainBackground { await this.setIcon(); await this.refreshBadgeAndMenu(); - this.notificationsService.updateConnection(); + this.notificationsService.updateConnection(false); } collectPageDetailsForContentScript(tab: any, sender: string, frameId: number = null) { diff --git a/src/background/runtime.background.ts b/src/background/runtime.background.ts index cc212b2a00..c305bb80c8 100644 --- a/src/background/runtime.background.ts +++ b/src/background/runtime.background.ts @@ -84,7 +84,7 @@ export default class RuntimeBackground { case 'locked': await this.main.setIcon(); await this.main.refreshBadgeAndMenu(msg.command === 'locked'); - this.notificationsService.updateConnection(); + this.notificationsService.updateConnection(msg.command === 'unlocked'); break; case 'logout': await this.main.logout(msg.expired);