diff options
Diffstat (limited to 'client')
-rw-r--r-- | client/src/standalone/videos/embed.ts | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/client/src/standalone/videos/embed.ts b/client/src/standalone/videos/embed.ts index 166013226..4f6fae8aa 100644 --- a/client/src/standalone/videos/embed.ts +++ b/client/src/standalone/videos/embed.ts | |||
@@ -59,7 +59,8 @@ function videoFetchError (videoElement: HTMLVideoElement) { | |||
59 | } | 59 | } |
60 | 60 | ||
61 | const urlParts = window.location.href.split('/') | 61 | const urlParts = window.location.href.split('/') |
62 | const videoId = urlParts[urlParts.length - 1] | 62 | const lastPart = urlParts[urlParts.length - 1] |
63 | const videoId = lastPart.indexOf('?') === -1 ? lastPart : lastPart.split('?')[0] | ||
63 | 64 | ||
64 | loadLocale(environment.apiUrl, videojs, navigator.language) | 65 | loadLocale(environment.apiUrl, videojs, navigator.language) |
65 | .then(() => loadVideoInfo(videoId)) | 66 | .then(() => loadVideoInfo(videoId)) |