Skip to content

Commit 2334b2c

Browse files
committed
fix: 🐛 修复 yurifans 有时无法正常加载的 bug
1 parent 44fa911 commit 2334b2c

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/site/yurifans.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { querySelector, querySelectorAll, wait } from 'helper';
1+
import { querySelector, querySelectorAll, wait, waitDom } from 'helper';
22
import { request, toast, useInit } from 'main';
33

44
declare const b2token: string;
@@ -48,7 +48,7 @@ declare const b2token: string;
4848
})();
4949

5050
// 跳过漫画区外的页面
51-
if (!querySelector('a.post-list-cat-item[title="在线区-漫画"]')) return;
51+
if (!(await waitDom('a.post-list-cat-item[title="在线区-漫画"]'))) return;
5252

5353
// 需要购买的漫画
5454
if (querySelector('.content-hidden')) {

0 commit comments

Comments
 (0)