Skip to content

Commit

Permalink
fix: Typing issue
Browse files Browse the repository at this point in the history
  • Loading branch information
mbarzeev committed Mar 15, 2024
1 parent 5aeaea4 commit 02eea9d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion packages/media-loader/src/MediaLoader/audio/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ export class AudioProcessor implements MediaProcessor {
htmlAudioElement.setAttribute('style', 'visibility: "visible"');
const audioElementChildren = Array.from(htmlAudioElement.children);
if (Array.isArray(audioElementChildren) && audioElementChildren.length) {
for (const child of htmlAudioElement.children) {
for (const child of audioElementChildren) {
if (child instanceof HTMLSourceElement) this.enableMediaByElement(child);
}
} else {
Expand Down
2 changes: 1 addition & 1 deletion packages/media-loader/src/MediaLoader/video/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ export class VideoProcessor implements MediaProcessor {
htmlVideoElement.setAttribute('style', 'visibility: "visible"');
const videoElementChildren = Array.from(htmlVideoElement.children);
if (Array.isArray(videoElementChildren) && videoElementChildren.length) {
for (const child of htmlVideoElement.children) {
for (const child of videoElementChildren) {
if (child instanceof HTMLSourceElement) this.enableMediaByElement(child);
}
} else {
Expand Down

0 comments on commit 02eea9d

Please sign in to comment.