Skip to content

Commit

Permalink
Add comments to clarify usage of non-standard HTML attributes in Read…
Browse files Browse the repository at this point in the history
…er component
  • Loading branch information
kasperbirch1 committed Jan 7, 2025
1 parent 6535e57 commit 7675bc7
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/components/reader-player/Reader.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,8 @@ const Reader: React.FC<ReaderType> = ({ identifier, orderid }: ReaderType) => {
<div
style={readerStyles}
id="pubhub-reader"
// The iframe that is created by the reader app has order-id and close-href attribute
// that are not valid HTML attributes. This is why we have to use the @ts-ignore
// eslint-disable-next-line react/no-unknown-property
order-id={orderid}
// eslint-disable-next-line react/no-unknown-property, no-script-url
Expand Down

0 comments on commit 7675bc7

Please sign in to comment.