Skip to content

Commit

Permalink
fix(route/zaobao): Replace selector (DIYgod#15880)
Browse files Browse the repository at this point in the history
* fix(route/zaobao): Replace selector.

* Revert "fix(route/zaobao): Replace selector."

This reverts commit 2ec2b6c.

* .

* .
  • Loading branch information
dzx-dzx authored Jun 12, 2024
1 parent 0aa141a commit ffff545
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/routes/zaobao/util.ts
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ const parseList = async (
}> => {
const response = await got_ins.get(baseUrl + sectionUrl);
const $ = load(response.data);
let data = $('.article-list').find('.article-type');
let data = /realtime/.test(sectionUrl) ? $('.on-listing-pages') : $('.article-list').find('.article-type');
if (data.length === 0) {
// for HK version
data = $('.clearfix').find('.list-block');
Expand Down

0 comments on commit ffff545

Please sign in to comment.