refactor(Parser): reduce reliance on localised strings (#258)

This commit is contained in:
LuanRT
2022-12-17 00:54:08 -03:00
committed by GitHub
parent b036e2fcdc
commit 9978ebf085
17 changed files with 117 additions and 85 deletions

View File

@@ -20,7 +20,7 @@ export default class Search extends Feed {
super(actions, data, already_parsed);
const contents =
this.page.contents_memo.getType(SectionList)?.[0]?.contents?.array() ||
this.page.contents_memo.getType(SectionList)?.[0]?.contents ||
this.page.on_response_received_commands?.[0].contents;
this.results = contents.firstOfType(ItemSection)?.contents;