Skip to content

Commit

Permalink
feat(RichGrid): Parse targetId
Browse files Browse the repository at this point in the history
  • Loading branch information
LuanRT committed Dec 17, 2024
1 parent 5e8e42c commit e571ee2
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/parser/classes/RichGrid.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,16 @@ export default class RichGrid extends YTNode {

header: YTNode;
contents: ObservedArray<YTNode>;
target_id?: string;

constructor(data: RawNode) {
super();
// (Daniel Wykerd) XXX: we don't parse the masthead since it is usually an advertisement
// (Daniel Wykerd) XXX: reflowOptions aren't parsed, I think its only used internally for layout
this.header = Parser.parseItem(data.header);
this.contents = Parser.parseArray(data.contents);

if (Reflect.has(data, 'targetId'))
this.target_id = data.targetId;
}
}

0 comments on commit e571ee2

Please sign in to comment.