move consts over

This commit is contained in:
Ginger Wong 2020-08-20 15:51:11 -07:00
parent 60c04c02c4
commit 42a34df63e
3 changed files with 6 additions and 3 deletions

View file

@ -175,6 +175,8 @@ export default class App extends Component {
// handle UI things from stream status result // handle UI things from stream status result
updateStreamStatus(status = {}) { updateStreamStatus(status = {}) {
const { streamOnline: curStreamOnline } = this.state;
if (!status) { if (!status) {
return; return;
} }
@ -184,7 +186,6 @@ export default class App extends Component {
overallMaxViewerCount, overallMaxViewerCount,
online, online,
} = status; } = status;
const { streamOnline: curStreamOnline } = this.state;
this.lastDisconnectTime = status.lastDisconnectTime; this.lastDisconnectTime = status.lastDisconnectTime;
@ -304,6 +305,7 @@ export default class App extends Component {
streamStatusMessage, streamStatusMessage,
chatEnabled, chatEnabled,
} = state; } = state;
const { const {
version: appVersion, version: appVersion,
logo = {}, logo = {},

View file

@ -25,6 +25,8 @@ const VIDEO_OPTIONS = {
sources: [VIDEO_SRC], sources: [VIDEO_SRC],
}; };
export const POSTER_DEFAULT = `/img/logo.png`;
export const POSTER_THUMB = `/thumbnail.jpg`;
class OwncastPlayer { class OwncastPlayer {
constructor() { constructor() {

View file

@ -15,8 +15,7 @@ export const TEMP_IMAGE = 'data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAE
export const MESSAGE_OFFLINE = 'Stream is offline.'; export const MESSAGE_OFFLINE = 'Stream is offline.';
export const MESSAGE_ONLINE = 'Stream is online'; export const MESSAGE_ONLINE = 'Stream is online';
export const POSTER_DEFAULT = `/img/logo.png`;
export const POSTER_THUMB = `/thumbnail.jpg`;
export const URL_OWNCAST = 'https://github.com/gabek/owncast'; // used in footer export const URL_OWNCAST = 'https://github.com/gabek/owncast'; // used in footer