1
0
mirror of https://github.com/bitwarden/browser synced 2026-02-06 11:43:51 +00:00

[PM-22789] Move userId into windows conditional check

This commit is contained in:
Colton Hurst
2025-07-30 11:03:43 -04:00
parent 6cccd7fd36
commit a16a2b3366

View File

@@ -47,9 +47,11 @@ export class DesktopAutotypeService {
}
async init() {
const userId = await firstValueFrom(this.accountService.activeAccount$.pipe(map((a) => a?.id)));
if (this.platformUtilsService.getDevice() === DeviceType.WindowsDesktop) {
const userId = await firstValueFrom(
this.accountService.activeAccount$.pipe(map((a) => a?.id)),
);
this.autotypeEnabled$ = combineLatest([
this.autotypeEnabledState.state$,
this.configService.getFeatureFlag$(FeatureFlag.WindowsDesktopAutotype),