Browse Source

inject custom style (#1083)

pull/1084/head
Meisam 5 years ago committed by GitHub
parent
commit
c77782cd35
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 8
      webroot/js/app-video-only.js

8
webroot/js/app-video-only.js

@ -225,7 +225,10 @@ export default class VideoOnly extends Component { @@ -225,7 +225,10 @@ export default class VideoOnly extends Component {
isPlaying,
} = state;
const { logo = TEMP_IMAGE } = configData;
const {
logo = TEMP_IMAGE,
customStyles,
} = configData;
const mainClass = playerActive ? 'online' : '';
@ -234,6 +237,9 @@ export default class VideoOnly extends Component { @@ -234,6 +237,9 @@ export default class VideoOnly extends Component {
: html` <${VideoPoster} offlineImage=${logo} active=${streamOnline} /> `;
return html`
<main class=${mainClass}>
<style>
${customStyles}
</style>
<div
id="video-container"
class="flex owncast-video-container bg-black w-full bg-center bg-no-repeat flex flex-col items-center justify-start"

Loading…
Cancel
Save