From 780ca3b846d745794b81ac06997488693a526c6a Mon Sep 17 00:00:00 2001 From: Alex Martzios Date: Thu, 26 Sep 2024 15:02:46 +0300 Subject: [PATCH] [angular-18] app.module: replace provider withFetch with withInterceptorsFromDi --- explore/src/app/app.module.ts | 4 ++-- explore/src/app/openaireLibrary | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/explore/src/app/app.module.ts b/explore/src/app/app.module.ts index 28e4fa8b..2417e64f 100755 --- a/explore/src/app/app.module.ts +++ b/explore/src/app/app.module.ts @@ -3,7 +3,7 @@ import {SharedModule} from './openaireLibrary/shared/shared.module'; import {BrowserModule} from '@angular/platform-browser'; import {BrowserAnimationsModule} from '@angular/platform-browser/animations'; import {CommonModule} from '@angular/common'; -import {HTTP_INTERCEPTORS, provideHttpClient, withFetch} from '@angular/common/http'; +import {HTTP_INTERCEPTORS, provideHttpClient, withInterceptorsFromDi} from '@angular/common/http'; import {AppComponent} from './app.component'; import {NavigationBarModule} from './openaireLibrary/sharedComponents/navigationBar.module'; import {CookieLawModule} from './openaireLibrary/sharedComponents/cookie-law/cookie-law.module'; @@ -45,7 +45,7 @@ import {LoadingModule} from "./openaireLibrary/utils/loading/loading.module"; }, [{ provide: HTTP_INTERCEPTORS, useClass: TimeoutInterceptor, multi: true }], [{ provide: DEFAULT_TIMEOUT, useValue: 3000 }], - provideHttpClient(withFetch()) + provideHttpClient(withInterceptorsFromDi()) ] }) export class AppModule { diff --git a/explore/src/app/openaireLibrary b/explore/src/app/openaireLibrary index e543d1f0..9c93a1e3 160000 --- a/explore/src/app/openaireLibrary +++ b/explore/src/app/openaireLibrary @@ -1 +1 @@ -Subproject commit e543d1f0f7635aad9f2189b9526e83c459ee7ea9 +Subproject commit 9c93a1e306ce7abd43e3c552a2fff0240ae2f04c