mirror of
https://github.com/pezkuwichain/pezkuwi-telemetry.git
synced 2026-10-20 18:56:21 +00:00
oops
This commit is contained in:
1 parent
3978085a38
commit
11044dbd49
1 file changed
+10
-10
+10
-10
@@ -39,19 +39,19 @@ export class Connection {
|
|||||||
private static readonly address = Connection.getAddress();
|
private static readonly address = Connection.getAddress();
|
||||||
|
|
||||||
private static getAddress(): string {
|
private static getAddress(): string {
|
||||||
// const ENV_URL = 'SUBSTRATE_TELEMETRY_URL';
|
const ENV_URL = 'SUBSTRATE_TELEMETRY_URL';
|
||||||
|
|
||||||
// if (process.env && process.env[ENV_URL]) {
|
if (process.env && process.env[ENV_URL]) {
|
||||||
// return process.env[ENV_URL] as string;
|
return process.env[ENV_URL] as string;
|
||||||
// }
|
}
|
||||||
|
|
||||||
// if (window.process_env && window.process_env[ENV_URL]) {
|
if (window.process_env && window.process_env[ENV_URL]) {
|
||||||
// return window.process_env[ENV_URL];
|
return window.process_env[ENV_URL];
|
||||||
// }
|
}
|
||||||
|
|
||||||
// if (window.location.protocol === 'https:') {
|
if (window.location.protocol === 'https:') {
|
||||||
// return `wss://${window.location.hostname}/feed/`;
|
return `wss://${window.location.hostname}/feed/`;
|
||||||
// }
|
}
|
||||||
|
|
||||||
return `ws://127.0.0.1:8000/feed`;
|
return `ws://127.0.0.1:8000/feed`;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in new issue
Block a user