Skip to content

Commit

Permalink
[Anime365] fix ui not loading from search
Browse files Browse the repository at this point in the history
  • Loading branch information
NoPlagiarism committed Apr 22, 2024
1 parent 1284468 commit 5dcc9f4
Showing 1 changed file with 16 additions and 2 deletions.
18 changes: 16 additions & 2 deletions src/pages/Anime365/main.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
import { urlPart } from '../../utils/general';
import { pageInterface } from '../pageInterface';

// const logger = con.m('Anime365', '#1b5e20');

function isNumeric(str: string) {
return !Number.isNaN(parseInt(str));
}
Expand Down Expand Up @@ -94,8 +96,20 @@ export const Anime365: pageInterface = {
require('!to-string-loader!css-loader!less-loader!./style.less').toString(),
);
utils.urlChangeDetect(() => {
page.reset();
page.handlePage();
utils.waitUntilTrue(
() => {
return (
j.$('.body-container > .section > .container > .row > .col:last-of-type > .card')
.length > 0
);
},
() => {
j.$(() => {
page.reset();
page.handlePage();
});
},
);
});
j.$(() => {
page.handlePage();
Expand Down

0 comments on commit 5dcc9f4

Please sign in to comment.