summaryrefslogtreecommitdiff
path: root/src/web/app/common/scripts/streaming
diff options
context:
space:
mode:
Diffstat (limited to 'src/web/app/common/scripts/streaming')
-rw-r--r--src/web/app/common/scripts/streaming/stream.ts5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/web/app/common/scripts/streaming/stream.ts b/src/web/app/common/scripts/streaming/stream.ts
index 97ebdcdd74..770d77510f 100644
--- a/src/web/app/common/scripts/streaming/stream.ts
+++ b/src/web/app/common/scripts/streaming/stream.ts
@@ -1,6 +1,7 @@
+declare const _API_URL_: string;
+
import { EventEmitter } from 'eventemitter3';
import * as ReconnectingWebsocket from 'reconnecting-websocket';
-import CONFIG from '../config';
/**
* Misskey stream connection
@@ -24,7 +25,7 @@ export default class Connection extends EventEmitter {
this.state = 'initializing';
this.buffer = [];
- const host = CONFIG.apiUrl.replace('http', 'ws');
+ const host = _API_URL_.replace('http', 'ws');
const query = params
? Object.keys(params)
.map(k => encodeURIComponent(k) + '=' + encodeURIComponent(params[k]))