ソースを参照

Fix TypeError: undefined is not an object

master
Lyubo Marinov 8年前
コミット
d371a3d5fd
1個のファイルの変更6行の追加0行の削除
  1. 6
    0
      modules/UI/videolayout/VideoContainer.js

+ 6
- 0
modules/UI/videolayout/VideoContainer.js ファイルの表示

310
     }
310
     }
311
 
311
 
312
     resize (containerWidth, containerHeight, animate = false) {
312
     resize (containerWidth, containerHeight, animate = false) {
313
+        // XXX Prevent TypeError: undefined is not an object when the Web
314
+        // browser does not support WebRTC (yet).
315
+        if (this.$video.length === 0) {
316
+            return;
317
+        }
318
+
313
         let [width, height]
319
         let [width, height]
314
             = this.getVideoSize(containerWidth, containerHeight);
320
             = this.getVideoSize(containerWidth, containerHeight);
315
         let { horizontalIndent, verticalIndent }
321
         let { horizontalIndent, verticalIndent }

読み込み中…
キャンセル
保存