From 29aaeef47bce99f330594c72d32d65c8de9d4e84 Mon Sep 17 00:00:00 2001 From: Mononaut Date: Wed, 18 Oct 2023 23:04:21 +0000 Subject: [PATCH] Fix deprecated SSR state transfer imports --- frontend/src/app/app.server.module.ts | 3 +-- frontend/src/app/services/websocket.service.ts | 2 +- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/frontend/src/app/app.server.module.ts b/frontend/src/app/app.server.module.ts index ff4885db1..9833fd7b9 100644 --- a/frontend/src/app/app.server.module.ts +++ b/frontend/src/app/app.server.module.ts @@ -1,6 +1,6 @@ import { HTTP_INTERCEPTORS } from '@angular/common/http'; import { NgModule } from '@angular/core'; -import { ServerModule, ServerTransferStateModule } from '@angular/platform-server'; +import { ServerModule } from '@angular/platform-server'; import { AppModule } from './app.module'; import { AppComponent } from './components/app/app.component'; @@ -10,7 +10,6 @@ import { HttpCacheInterceptor } from './services/http-cache.interceptor'; imports: [ AppModule, ServerModule, - ServerTransferStateModule, ], providers: [ { provide: HTTP_INTERCEPTORS, useClass: HttpCacheInterceptor, multi: true } diff --git a/frontend/src/app/services/websocket.service.ts b/frontend/src/app/services/websocket.service.ts index 2f6bef2d9..54fcad7d4 100644 --- a/frontend/src/app/services/websocket.service.ts +++ b/frontend/src/app/services/websocket.service.ts @@ -6,7 +6,7 @@ import { Transaction } from '../interfaces/electrs.interface'; import { Subscription } from 'rxjs'; import { ApiService } from './api.service'; import { take } from 'rxjs/operators'; -import { TransferState, makeStateKey } from '@angular/platform-browser'; +import { TransferState, makeStateKey } from '@angular/core'; import { CacheService } from './cache.service'; import { uncompressDeltaChange, uncompressTx } from '../shared/common.utils';