Skip to content

Commit

Permalink
allow parsedJson?
Browse files Browse the repository at this point in the history
  • Loading branch information
KentoNishi committed Jul 11, 2024
1 parent e4e5ea5 commit c40f8cb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/ts/messaging.ts
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,7 @@ export const setInitialData = (json: string): void => {
?.addLiveChatTextMessageFromTemplateAction?.template
?.liveChatTextMessageRenderer ?? {
authorName: {
simpleText: parsedJson.continuationContents?.liveChatContinuation?.viewerName
simpleText: parsedJson?.continuationContents?.liveChatContinuation?.viewerName
}
};

Expand Down

0 comments on commit c40f8cb

Please sign in to comment.