Skip to content

Commit

Permalink
lint check for indent
Browse files Browse the repository at this point in the history
  • Loading branch information
rbi-aap committed Sep 3, 2024
1 parent aaa1e17 commit a1d2243
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions assets/ui/components/ArticleBodyHtml.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,7 @@ class ArticleBodyHtml extends React.PureComponent {
}


executeScripts() {
executeScripts() {
const tree = this.bodyRef.current;
const loaded = [];

Expand Down Expand Up @@ -166,6 +166,7 @@ class ArticleBodyHtml extends React.PureComponent {
}
});
}

setupPlyrPlayers() {
const tree = this.bodyRef.current;
if (tree == null || window.Plyr == null) {
Expand Down Expand Up @@ -268,8 +269,8 @@ class ArticleBodyHtml extends React.PureComponent {
.filter((value) => value);

if (!imageEmbedOriginalIds.length) {
// This item has no Image Embeds
// return the supplied html as-is
// This item has no Image Embeds
// return the supplied html as-is
return html;
}

Expand All @@ -282,7 +283,7 @@ class ArticleBodyHtml extends React.PureComponent {
container
.querySelectorAll('img,video,audio')
.forEach((imageTag) => {
// Using the tag's `src` attribute, find the Original Rendition's ID
// Using the tag's `src` attribute, find the Original Rendition's ID
const originalMediaId = imageEmbedOriginalIds.find((mediaId) => (
!imageTag.src.startsWith('/assets/') &&
imageTag.src.includes(mediaId))
Expand Down

0 comments on commit a1d2243

Please sign in to comment.