1
0
mirror of https://github.com/bitwarden/browser synced 2025-12-10 13:23:34 +00:00

Separate browser foreground and background memory space (#9315)

* Separate browser foreground and background memory space

* Prefer inherited DI providers
This commit is contained in:
Matt Gibson
2024-05-27 08:54:24 -04:00
committed by GitHub
parent 2e6280ce88
commit 93b9eba769
2 changed files with 5 additions and 11 deletions

View File

@@ -11,8 +11,8 @@ import {
import { ApiService } from "../../abstractions/api.service";
import { CryptoService } from "../../platform/abstractions/crypto.service";
import { MessagingService } from "../../platform/abstractions/messaging.service";
import { StateService } from "../../platform/abstractions/state.service";
import { MessageSender } from "../../platform/messaging";
import { Utils } from "../../platform/misc/utils";
import { UserId } from "../../types/guid";
import { AccountService } from "../abstractions/account.service";
@@ -26,7 +26,7 @@ export class AuthService implements AuthServiceAbstraction {
constructor(
protected accountService: AccountService,
protected messagingService: MessagingService,
protected messageSender: MessageSender,
protected cryptoService: CryptoService,
protected apiService: ApiService,
protected stateService: StateService,
@@ -95,6 +95,6 @@ export class AuthService implements AuthServiceAbstraction {
logOut(callback: () => void) {
callback();
this.messagingService.send("loggedOut");
this.messageSender.send("loggedOut");
}
}