This commit is contained in:
xiezibuyongbi 2025-08-13 09:08:31 +08:00 committed by GitHub
parent 8046b36bd0
commit d73be3ec7c
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -5,7 +5,7 @@ import { getCsrf, getUID } from '@/core/utils'
export function getLiveRoomId(): string {
let matched = location.href.match(/live.bilibili.com\/(\d+)/)
if (matched) {
return matched[1]
return matched[1]
}
matched = location.href.match(/live.bilibili.com\/blanc\/(\d+)/)
return matched ? matched[1] : ''