mirror of
https://github.com/Chocobozzz/PeerTube.git
synced 2025-02-25 18:55:32 -06:00
Fix embed view with search params
This commit is contained in:
@@ -59,7 +59,8 @@ function videoFetchError (videoElement: HTMLVideoElement) {
|
||||
}
|
||||
|
||||
const urlParts = window.location.href.split('/')
|
||||
const videoId = urlParts[urlParts.length - 1]
|
||||
const lastPart = urlParts[urlParts.length - 1]
|
||||
const videoId = lastPart.indexOf('?') === -1 ? lastPart : lastPart.split('?')[0]
|
||||
|
||||
loadLocale(environment.apiUrl, videojs, navigator.language)
|
||||
.then(() => loadVideoInfo(videoId))
|
||||
|
||||
Reference in New Issue
Block a user