clean up consts a bit
This commit is contained in:
@@ -1,12 +1,15 @@
|
|||||||
|
|
||||||
|
const LOCAL_TEST = true;
|
||||||
|
|
||||||
|
|
||||||
const MESSAGE_OFFLINE = 'Stream is offline.';
|
const MESSAGE_OFFLINE = 'Stream is offline.';
|
||||||
const MESSAGE_ONLINE = 'Stream is online.';
|
const MESSAGE_ONLINE = 'Stream is online.';
|
||||||
|
|
||||||
// const URL_PREFIX = '';
|
const URL_PREFIX = LOCAL_TEST ? 'https://goth.land' : '';
|
||||||
const URL_PREFIX = 'https://goth.land';
|
|
||||||
const URL_STATUS = `${URL_PREFIX}/status`;
|
const URL_STATUS = `${URL_PREFIX}/status`;
|
||||||
const URL_STREAM = `${URL_PREFIX}/hls/stream.m3u8`;
|
const URL_STREAM = `${URL_PREFIX}/hls/stream.m3u8`;
|
||||||
|
|
||||||
const URL_WEBSOCKET = URL_PREFIX
|
const URL_WEBSOCKET = LOCAL_TEST
|
||||||
? 'wss://goth.land/entry'
|
? 'wss://goth.land/entry'
|
||||||
: `${location.protocol === 'https:' ? 'wss' : 'ws'}://${location.host}/entry`;
|
: `${location.protocol === 'https:' ? 'wss' : 'ws'}://${location.host}/entry`;
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user