Skip to content

Commit

Permalink
fix: page detect adapt bnj2024
Browse files Browse the repository at this point in the history
  • Loading branch information
festoney8 committed Feb 9, 2024
1 parent c00e6c5 commit e119b32
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/utils/page-type.ts
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ const currPage = (): string => {
return 'playlist'
}
// 匹配拜年祭活动页、拜年祭单品视频
if (href.match(/bilibili\.com\/festival\/20\d\dbnj/)) {
if (href.match(/bilibili\.com\/festival\/20\d\dbnj/) || href.includes('bilibili.com/festival/bnj20')) {
return 'bnj'
}
return ''
Expand Down

0 comments on commit e119b32

Please sign in to comment.