1
0
mirror of https://github.com/bitwarden/browser synced 2025-12-10 05:13:29 +00: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

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;