Skip to content

Commit

Permalink
Merge pull request #4145 from hhp1614/preview-fixes
Browse files Browse the repository at this point in the history
fix(extend-live): 修复新版动态无法打开“正在直播”十个以后的链接
  • Loading branch information
the1812 committed Apr 22, 2023
2 parents a7fcc4b + 191ae41 commit d2990d6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion registry/lib/components/feeds/extend-live/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ const entry = async () => {
const clone = liveDetailItem.cloneNode(true) as HTMLElement
const url = `https://live.bilibili.com/${it.roomid}`
dqa(clone, 'a[href]').forEach(a => a.setAttribute('href', url))
if (clone.matches('.bili-dyn-live-users__item')) {
if (clone.matches('.bili-dyn-live-users__item, .bili-dyn-live-users__container')) {
clone.addEventListener('click', () => {
window.open(url, '_blank')
})
Expand Down

0 comments on commit d2990d6

Please sign in to comment.