mirror of
https://github.com/mempool/mempool.git
synced 2025-04-02 08:58:17 +02:00
Change hard-coded backend websocket URI to document.location.hostname
This commit is contained in:
parent
d2e4bfe457
commit
564bf32613
@ -5,7 +5,7 @@ import { HttpClient, HttpParams } from '@angular/common/http';
|
||||
import { IMempoolDefaultResponse, IMempoolStats, IBlockTransaction } from '../blockchain/interfaces';
|
||||
import { Observable } from 'rxjs';
|
||||
|
||||
const WEB_SOCKET_URL = 'ws://localhost:8999';
|
||||
const WEB_SOCKET_URL = 'ws://' + document.location.hostname + ':8999';
|
||||
const API_BASE_URL = '/api/v1';
|
||||
|
||||
@Injectable({
|
||||
|
Loading…
x
Reference in New Issue
Block a user