summaryrefslogtreecommitdiff
path: root/src/web/app/common/scripts
diff options
context:
space:
mode:
authorsyuilo <syuilotan@yahoo.co.jp>2017-11-01 03:17:14 +0900
committersyuilo <syuilotan@yahoo.co.jp>2017-11-01 03:17:14 +0900
commitf37fb38640a31c4b8865a5562628197ff21f3cce (patch)
treec68d1b73aeb8c0c61d6a76ed4577036d4c3c04a5 /src/web/app/common/scripts
parentwip (diff)
downloadsharkey-f37fb38640a31c4b8865a5562628197ff21f3cce.tar.gz
sharkey-f37fb38640a31c4b8865a5562628197ff21f3cce.tar.bz2
sharkey-f37fb38640a31c4b8865a5562628197ff21f3cce.zip
wip
Diffstat (limited to 'src/web/app/common/scripts')
-rw-r--r--src/web/app/common/scripts/channel-stream.js6
-rw-r--r--src/web/app/common/scripts/config.js2
2 files changed, 6 insertions, 2 deletions
diff --git a/src/web/app/common/scripts/channel-stream.js b/src/web/app/common/scripts/channel-stream.js
index 38e7d91132..17944dbe45 100644
--- a/src/web/app/common/scripts/channel-stream.js
+++ b/src/web/app/common/scripts/channel-stream.js
@@ -6,8 +6,10 @@ import Stream from './stream';
* Channel stream connection
*/
class Connection extends Stream {
- constructor() {
- super('channel');
+ constructor(channelId) {
+ super('channel', {
+ channel: channelId
+ });
}
}
diff --git a/src/web/app/common/scripts/config.js b/src/web/app/common/scripts/config.js
index 75a7abba29..c5015622f0 100644
--- a/src/web/app/common/scripts/config.js
+++ b/src/web/app/common/scripts/config.js
@@ -6,6 +6,7 @@ const host = isRoot ? Url.host : Url.host.substring(Url.host.indexOf('.') + 1, U
const scheme = Url.protocol;
const url = `${scheme}//${host}`;
const apiUrl = `${scheme}//api.${host}`;
+const chUrl = `${scheme}//ch.${host}`;
const devUrl = `${scheme}//dev.${host}`;
const aboutUrl = `${scheme}//about.${host}`;
const statsUrl = `${scheme}//stats.${host}`;
@@ -16,6 +17,7 @@ export default {
scheme,
url,
apiUrl,
+ chUrl,
devUrl,
aboutUrl,
statsUrl,