diff options
| author | syuilo <syuilotan@yahoo.co.jp> | 2017-11-23 05:43:00 +0900 |
|---|---|---|
| committer | syuilo <syuilotan@yahoo.co.jp> | 2017-11-23 05:43:00 +0900 |
| commit | 3f8ebac466ece8e9598432f3f574ec44e420c03b (patch) | |
| tree | 05114fce9728d6ce1deecc1f2eb8a903a22b0100 /src/web/app/common/scripts/streaming | |
| parent | :v: (diff) | |
| download | sharkey-3f8ebac466ece8e9598432f3f574ec44e420c03b.tar.gz sharkey-3f8ebac466ece8e9598432f3f574ec44e420c03b.tar.bz2 sharkey-3f8ebac466ece8e9598432f3f574ec44e420c03b.zip | |
なんかもうめっちゃ変えた
Closes #940
Diffstat (limited to 'src/web/app/common/scripts/streaming')
| -rw-r--r-- | src/web/app/common/scripts/streaming/stream.ts | 5 |
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])) |