Fix test embed page
This commit is contained in:
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