From ad94abe021d6ef253f401737a26693de46af91d7 Mon Sep 17 00:00:00 2001 From: KenTandrian Date: Wed, 1 Jul 2026 08:59:49 +0700 Subject: [PATCH] feat(client): replace constructor based DI with inject functions --- apps/client/src/app/services/web-authn.service.ts | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/apps/client/src/app/services/web-authn.service.ts b/apps/client/src/app/services/web-authn.service.ts index b0425ce89..bc6995efd 100644 --- a/apps/client/src/app/services/web-authn.service.ts +++ b/apps/client/src/app/services/web-authn.service.ts @@ -6,7 +6,7 @@ import { } from '@ghostfolio/common/interfaces'; import { HttpClient } from '@angular/common/http'; -import { Injectable } from '@angular/core'; +import { inject, Injectable } from '@angular/core'; import { startAuthentication, startRegistration @@ -20,10 +20,8 @@ import { catchError, switchMap, tap } from 'rxjs/operators'; export class WebAuthnService { private static readonly WEB_AUTH_N_DEVICE_ID = 'WEB_AUTH_N_DEVICE_ID'; - public constructor( - private http: HttpClient, - private settingsStorageService: SettingsStorageService - ) {} + private readonly http = inject(HttpClient); + private readonly settingsStorageService = inject(SettingsStorageService); public isSupported() { return typeof PublicKeyCredential !== 'undefined';