From 0c57cacf88aeb11d14f193876e8743b57cfa49b6 Mon Sep 17 00:00:00 2001 From: Miroslav Pejic Date: Tue, 8 Mar 2022 14:39:50 +0100 Subject: [PATCH] [mirotalksfu] - fix typo --- public/js/VideoGrid.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/public/js/VideoGrid.js b/public/js/VideoGrid.js index f0bac63..e1a675e 100644 --- a/public/js/VideoGrid.js +++ b/public/js/VideoGrid.js @@ -68,12 +68,12 @@ function resizeVideoMedia() { function setWidth(videoMediaContainer, Cameras, width, bigWidth, margin, maxHeight) { ratio = customRatio ? 0.68 : ratio; - let OneParticipant = videoMediaContainer.childElementCount == 1 ? true : false; + let isOneVideoElement = videoMediaContainer.childElementCount == 1 ? true : false; for (let s = 0; s < Cameras.length; s++) { Cameras[s].style.width = width + 'px'; Cameras[s].style.margin = margin + 'px'; Cameras[s].style.height = width * ratio + 'px'; - if (OneParticipant) { + if (isOneVideoElement) { Cameras[s].style.width = bigWidth + 'px'; Cameras[s].style.height = bigWidth * ratio + 'px'; let camHeigh = Cameras[s].style.height.substring(0, Cameras[s].style.height.length - 2);