mirror of
https://github.com/He4eT/elseifplayer.git
synced 2026-05-05 01:17:22 +00:00
Player: add the singleWindow option
This commit is contained in:
parent
7240be1120
commit
18da26dc20
4 changed files with 45 additions and 18 deletions
|
|
@ -35,7 +35,7 @@ const prepareVM = ({ url, setStatus, setParts }) => {
|
|||
})
|
||||
}
|
||||
|
||||
export default function ({ url }) {
|
||||
export default function ({ url, singleWindow }) {
|
||||
const [status, setStatus] = useState(INITIAL_STATUS)
|
||||
const [vmParts, setParts] = useState(null)
|
||||
|
||||
|
|
@ -47,6 +47,9 @@ export default function ({ url }) {
|
|||
}, [url])
|
||||
|
||||
return vmParts
|
||||
? (<Player vmParts={vmParts} />)
|
||||
? (<Player {...{
|
||||
vmParts,
|
||||
singleWindow
|
||||
}}/>)
|
||||
: (<Status {...status} />)
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue