mirror of https://github.com/Chocobozzz/PeerTube
Fix test embed page
parent
40c52969f7
commit
7a13d0320b
|
@ -12,8 +12,8 @@ window.addEventListener('load', async () => {
|
|||
|
||||
const iframe = document.createElement('iframe')
|
||||
iframe.src = isPlaylist
|
||||
? `/videos/embed/${elementId}?api=1`
|
||||
: `/video-playlists/embed/${elementId}?api=1`
|
||||
? `/video-playlists/embed/${elementId}?api=1`
|
||||
: `/videos/embed/${elementId}?api=1`
|
||||
|
||||
const mainElement = document.querySelector('#host')
|
||||
mainElement.appendChild(iframe)
|
||||
|
|
Loading…
Reference in New Issue