diff options
Diffstat (limited to 'client/src/standalone/videos/test-embed.ts')
-rw-r--r-- | client/src/standalone/videos/test-embed.ts | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/client/src/standalone/videos/test-embed.ts b/client/src/standalone/videos/test-embed.ts index 066b3e024..a051f1f89 100644 --- a/client/src/standalone/videos/test-embed.ts +++ b/client/src/standalone/videos/test-embed.ts | |||
@@ -8,7 +8,7 @@ window.addEventListener('load', async () => { | |||
8 | 8 | ||
9 | const isPlaylist = window.location.pathname.startsWith('/video-playlists/') | 9 | const isPlaylist = window.location.pathname.startsWith('/video-playlists/') |
10 | 10 | ||
11 | const elementId = lastPart.indexOf('?') === -1 ? lastPart : lastPart.split('?')[0] | 11 | const elementId = !lastPart.includes('?') ? lastPart : lastPart.split('?')[0] |
12 | 12 | ||
13 | const iframe = document.createElement('iframe') | 13 | const iframe = document.createElement('iframe') |
14 | iframe.src = isPlaylist | 14 | iframe.src = isPlaylist |