1
0
mirror of https://github.com/bitwarden/browser synced 2026-02-14 23:45:37 +00:00
This commit is contained in:
Bernd Schoolmann
2025-08-28 13:20:01 +02:00
parent 27e5b043a0
commit e9af77078a
2 changed files with 1 additions and 16 deletions

View File

@@ -1,5 +1,3 @@
import { CryptoFunctionService } from "@bitwarden/common/key-management/crypto/abstractions/crypto-function.service";
import { EncryptService } from "@bitwarden/common/key-management/crypto/abstractions/encrypt.service";
import { I18nService } from "@bitwarden/common/platform/abstractions/i18n.service";
import { LogService } from "@bitwarden/common/platform/abstractions/log.service";
import { SymmetricCryptoKey } from "@bitwarden/common/platform/models/domain/symmetric-crypto-key";
@@ -22,17 +20,12 @@ export class MainBiometricsService extends DesktopBiometricsService {
private logService: LogService,
platform: NodeJS.Platform,
private biometricStateService: BiometricStateService,
private encryptService: EncryptService,
private cryptoFunctionService: CryptoFunctionService,
) {
super();
if (platform === "win32") {
// eslint-disable-next-line
const OsBiometricsServiceWindows = require("./os-biometrics-windows.service").default;
this.osBiometricsService = new OsBiometricsServiceWindows(
this.i18nService,
this.windowMain,
);
this.osBiometricsService = new OsBiometricsServiceWindows(this.i18nService, this.windowMain);
} else if (platform === "darwin") {
// eslint-disable-next-line
const OsBiometricsServiceMac = require("./os-biometrics-mac.service").default;

View File

@@ -11,7 +11,6 @@ import { SsoUrlService } from "@bitwarden/auth/common";
import { AccountServiceImplementation } from "@bitwarden/common/auth/services/account.service";
import { DefaultActiveUserAccessor } from "@bitwarden/common/auth/services/default-active-user.accessor";
import { ClientType } from "@bitwarden/common/enums";
import { EncryptServiceImplementation } from "@bitwarden/common/key-management/crypto/services/encrypt.service.implementation";
import { RegionConfig } from "@bitwarden/common/platform/abstractions/environment.service";
import { SdkLoadService } from "@bitwarden/common/platform/abstractions/sdk/sdk-load.service";
import { Message, MessageSender } from "@bitwarden/common/platform/messaging";
@@ -194,11 +193,6 @@ export class Main {
this.desktopSettingsService = new DesktopSettingsService(stateProvider);
const biometricStateService = new DefaultBiometricStateService(stateProvider);
const encryptService = new EncryptServiceImplementation(
this.mainCryptoFunctionService,
this.logService,
true,
);
this.windowMain = new WindowMain(
biometricStateService,
@@ -215,8 +209,6 @@ export class Main {
this.logService,
process.platform,
biometricStateService,
encryptService,
this.mainCryptoFunctionService,
);
this.messagingMain = new MessagingMain(this, this.desktopSettingsService);