mirror of
https://github.com/kubesphere/website.git
synced 2025-12-26 00:12:48 +00:00
fix: Open a new page for bilibili video in videos page
Signed-off-by: TheYoungManLi <cjl@kubesphere.io>
This commit is contained in:
parent
2127350b4e
commit
52ba9e0053
|
|
@ -60,7 +60,13 @@
|
|||
var link = $(this).data('link')
|
||||
var language = $('.video-ul').data('language')
|
||||
if (language === 'zh') {
|
||||
showVideo(link)
|
||||
const isBiliBili = link.includes('player.bilibili.com')
|
||||
// due to the browser's cookie policy, bilibili website cant be used in iframe
|
||||
if(isBiliBili){
|
||||
window.open(link)
|
||||
}else{
|
||||
showVideo(link)
|
||||
}
|
||||
} else if (language === 'en') {
|
||||
showIframe(link)
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue