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:
@@ -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");
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user