mirror of
https://github.com/bitwarden/browser
synced 2025-12-11 05:43:41 +00:00
[EC-177] Update Key Connector error handling (#2748)
* Update jslib, deps and messages.json
This commit is contained in:
Submodule apps/browser/jslib updated: 2f54893854...a6fe5c7900
@@ -1961,5 +1961,8 @@
|
||||
},
|
||||
"apiKey": {
|
||||
"message": "API Key"
|
||||
},
|
||||
"ssoKeyConnectorError": {
|
||||
"message": "Key Connector error: make sure Key Connector is available and working correctly."
|
||||
}
|
||||
}
|
||||
|
||||
@@ -163,6 +163,21 @@ export default class MainBackground {
|
||||
|
||||
constructor(public isPrivateMode: boolean = false) {
|
||||
// Services
|
||||
const lockedCallback = async (userId?: string) => {
|
||||
if (this.notificationsService != null) {
|
||||
this.notificationsService.updateConnection(false);
|
||||
}
|
||||
await this.setIcon();
|
||||
await this.refreshBadgeAndMenu(true);
|
||||
if (this.systemService != null) {
|
||||
await this.systemService.clearPendingClipboard();
|
||||
await this.reloadProcess();
|
||||
}
|
||||
};
|
||||
|
||||
const logoutCallback = async (expired: boolean, userId?: string) =>
|
||||
await this.logout(expired, userId);
|
||||
|
||||
this.messagingService = isPrivateMode
|
||||
? new BrowserMessagingPrivateModeBackgroundService()
|
||||
: new BrowserMessagingService();
|
||||
@@ -267,7 +282,8 @@ export default class MainBackground {
|
||||
this.tokenService,
|
||||
this.logService,
|
||||
this.organizationService,
|
||||
this.cryptoFunctionService
|
||||
this.cryptoFunctionService,
|
||||
logoutCallback
|
||||
);
|
||||
this.vaultFilterService = new VaultFilterService(
|
||||
this.stateService,
|
||||
@@ -304,21 +320,6 @@ export default class MainBackground {
|
||||
this.i18nService
|
||||
);
|
||||
|
||||
const lockedCallback = async (userId?: string) => {
|
||||
if (this.notificationsService != null) {
|
||||
this.notificationsService.updateConnection(false);
|
||||
}
|
||||
await this.setIcon();
|
||||
await this.refreshBadgeAndMenu(true);
|
||||
if (this.systemService != null) {
|
||||
await this.systemService.clearPendingClipboard();
|
||||
await this.reloadProcess();
|
||||
}
|
||||
};
|
||||
|
||||
const logoutCallback = async (expired: boolean, userId?: string) =>
|
||||
await this.logout(expired, userId);
|
||||
|
||||
this.vaultTimeoutService = new VaultTimeoutService(
|
||||
this.cipherService,
|
||||
this.folderService,
|
||||
|
||||
Reference in New Issue
Block a user