update jslib, sync on unlock reconnect

This commit is contained in:
Kyle Spearrin 2018-08-23 09:26:07 -04:00
parent acba98d4f8
commit 423bbc20b7
3 changed files with 4 additions and 4 deletions

2
jslib

@ -1 +1 @@
Subproject commit 3d02a1ecb8cdb945f3bee2fbb6921b40286575a1 Subproject commit 2dc77b6143f59d45fef762a64c353db14d12bb1d

View File

@ -145,7 +145,7 @@ export default class MainBackground {
this.cryptoService, this.platformUtilsService, this.storageService, this.messagingService, this.cryptoService, this.platformUtilsService, this.storageService, this.messagingService,
this.searchService, async () => { this.searchService, async () => {
if (this.notificationsService != null) { if (this.notificationsService != null) {
this.notificationsService.updateConnection(); this.notificationsService.updateConnection(false);
} }
await this.setIcon(); await this.setIcon();
await this.refreshBadgeAndMenu(true); await this.refreshBadgeAndMenu(true);
@ -281,7 +281,7 @@ export default class MainBackground {
await this.setIcon(); await this.setIcon();
await this.refreshBadgeAndMenu(); await this.refreshBadgeAndMenu();
this.notificationsService.updateConnection(); this.notificationsService.updateConnection(false);
} }
collectPageDetailsForContentScript(tab: any, sender: string, frameId: number = null) { collectPageDetailsForContentScript(tab: any, sender: string, frameId: number = null) {

View File

@ -84,7 +84,7 @@ export default class RuntimeBackground {
case 'locked': case 'locked':
await this.main.setIcon(); await this.main.setIcon();
await this.main.refreshBadgeAndMenu(msg.command === 'locked'); await this.main.refreshBadgeAndMenu(msg.command === 'locked');
this.notificationsService.updateConnection(); this.notificationsService.updateConnection(msg.command === 'unlocked');
break; break;
case 'logout': case 'logout':
await this.main.logout(msg.expired); await this.main.logout(msg.expired);