From 98d2fea4bc5d953350409d08823d642dbb95a199 Mon Sep 17 00:00:00 2001 From: tiagohm Date: Wed, 19 Jun 2024 22:55:52 -0300 Subject: [PATCH] [desktop]: Fix Http Interceptor provider --- desktop/src/app/app.module.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/desktop/src/app/app.module.ts b/desktop/src/app/app.module.ts index 14c101583..f025f2ca7 100644 --- a/desktop/src/app/app.module.ts +++ b/desktop/src/app/app.module.ts @@ -1,6 +1,6 @@ import { DragDropModule } from '@angular/cdk/drag-drop' import { CommonModule } from '@angular/common' -import { HTTP_INTERCEPTORS, provideHttpClient } from '@angular/common/http' +import { HTTP_INTERCEPTORS, provideHttpClient, withInterceptorsFromDi } from '@angular/common/http' import { LOCALE_ID, NgModule } from '@angular/core' import { FormsModule } from '@angular/forms' import { BrowserModule } from '@angular/platform-browser' @@ -193,7 +193,7 @@ import { SettingsComponent } from './settings/settings.component' ExposureTimePipe, MessageService, SkyObjectPipe, - provideHttpClient(), + provideHttpClient(withInterceptorsFromDi()), WinPipe, { provide: LOCALE_ID,