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

@@ -31,7 +31,7 @@ class Settings {
if (!tab)
throw new InnertubeError('Target tab not found');
const contents = tab.content?.as(SectionList).contents.array().as(ItemSection);
const contents = tab.content?.as(SectionList).contents.as(ItemSection);
this.introduction = contents?.shift()?.contents?.get({ type: 'PageIntroduction' })?.as(PageIntroduction);