mirror of
https://gitcode.com/GitHub_Trending/ji/jitsi-meet.git
synced 2025-12-30 03:12:29 +00:00
Fix TypeError: undefined is not an object
This commit is contained in:
@@ -310,6 +310,12 @@ export class VideoContainer extends LargeContainer {
|
||||
}
|
||||
|
||||
resize (containerWidth, containerHeight, animate = false) {
|
||||
// XXX Prevent TypeError: undefined is not an object when the Web
|
||||
// browser does not support WebRTC (yet).
|
||||
if (this.$video.length === 0) {
|
||||
return;
|
||||
}
|
||||
|
||||
let [width, height]
|
||||
= this.getVideoSize(containerWidth, containerHeight);
|
||||
let { horizontalIndent, verticalIndent }
|
||||
|
||||
Reference in New Issue
Block a user