fix(horizontal-filmstrip): JS error.

Fixes the following JS error which prevents the whole page from
rendering:
TypeError: Cannot read properties of null (reading 'offsetHeight')
pull/13460/head jitsi-meet_8738
Hristo Terezov 2 years ago
parent 74f605e045
commit 5425b52615
  1. 2
      modules/UI/videolayout/Filmstrip.js

@ -15,7 +15,7 @@ const Filmstrip = {
// horizontal film strip mode for calculating how tall large video
// display should be.
if (isFilmstripVisible(APP.store) && !interfaceConfig.VERTICAL_FILMSTRIP) {
return document.querySelector('.filmstrip').offsetHeight;
return document.querySelector('.filmstrip')?.offsetHeight ?? 0;
}
return 0;

Loading…
Cancel
Save