* Make top nav able to parse sharable video URL with playlist param (#4548)

This commit is contained in:
PikachuEXE 2024-01-16 04:46:24 +08:00 committed by GitHub
parent 57d4216bdd
commit 251abe4241
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 0 deletions

View File

@ -572,6 +572,7 @@ export function getVideoParamsFromUrl(url) {
function () {
if (urlObject.host === 'youtu.be' && /^\/[\w-]+$/.test(urlObject.pathname)) {
extractParams(urlObject.pathname.slice(1))
paramsObject.playlistId = urlObject.searchParams.get('list')
return paramsObject
}
},