mirror of
https://github.com/mempool/mempool.git
synced 2025-01-18 21:32:55 +01:00
Hack to fix the urls.
This commit is contained in:
parent
42d1fcbdee
commit
dee9fa2d9a
@ -34,7 +34,10 @@ export class HttpCacheInterceptor implements HttpInterceptor {
|
||||
return next.handle(request)
|
||||
.pipe(tap((event: HttpEvent<any>) => {
|
||||
if (!this.isBrowser && event instanceof HttpResponse) {
|
||||
const keyId = request.url.split('/').slice(3).join('/').replace('api/v1/', '');
|
||||
let keyId = request.url.split('/').slice(3).join('/');
|
||||
if (keyId.indexOf('api/') === -1) {
|
||||
keyId = 'api/' + keyId;
|
||||
}
|
||||
this.transferState.set(makeStateKey('/' + keyId), event);
|
||||
}
|
||||
}));
|
||||
|
Loading…
Reference in New Issue
Block a user