1
0
mirror of https://github.com/bitwarden/browser.git synced 2025-01-02 18:17:46 +01:00

[PM-6558] onboarding ext check on log in (#8249)

* updated browser runtime background to send hasBWInstalled message on login/unlocked
This commit is contained in:
Jason Ng 2024-03-14 13:13:27 -04:00 committed by GitHub
parent 65b7ca7177
commit 34fbfaf2ee
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -97,6 +97,10 @@ export default class RuntimeBackground {
case "unlocked": {
let item: LockedVaultPendingNotificationsData;
if (msg.command === "loggedIn") {
await this.sendBwInstalledMessageToVault();
}
if (this.lockedVaultPendingNotifications?.length > 0) {
item = this.lockedVaultPendingNotifications.pop();
await closeUnlockPopout();
@ -351,8 +355,6 @@ export default class RuntimeBackground {
if (await this.environmentService.hasManagedEnvironment()) {
await this.environmentService.setUrlsToManagedEnvironment();
}
await this.sendBwInstalledMessageToVault();
}
this.onInstalledReason = null;