From 02eea9dc89f7968f58ef072a87f128195091f0eb Mon Sep 17 00:00:00 2001 From: Matti Bar-Zeev Date: Fri, 15 Mar 2024 16:04:32 +0200 Subject: [PATCH] fix: Typing issue --- packages/media-loader/src/MediaLoader/audio/index.ts | 2 +- packages/media-loader/src/MediaLoader/video/index.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/media-loader/src/MediaLoader/audio/index.ts b/packages/media-loader/src/MediaLoader/audio/index.ts index d28aba9..4f4b4ca 100644 --- a/packages/media-loader/src/MediaLoader/audio/index.ts +++ b/packages/media-loader/src/MediaLoader/audio/index.ts @@ -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 { diff --git a/packages/media-loader/src/MediaLoader/video/index.ts b/packages/media-loader/src/MediaLoader/video/index.ts index eefcdf3..57bfbbf 100644 --- a/packages/media-loader/src/MediaLoader/video/index.ts +++ b/packages/media-loader/src/MediaLoader/video/index.ts @@ -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 {