소스 검색

[RN] Prevent a possible TypeError

master
paweldomas 8 년 전
부모
커밋
70fc727b92
1개의 변경된 파일3개의 추가작업 그리고 1개의 파일을 삭제
  1. 3
    1
      react/features/overlay/components/OverlayFrame.js

+ 3
- 1
react/features/overlay/components/OverlayFrame.js 파일 보기

@@ -42,7 +42,9 @@ export default class OverlayFrame extends Component {
42 42
              *
43 43
              * @type {boolean}
44 44
              */
45
-            filmstripOnly: interfaceConfig.filmStripOnly
45
+            filmstripOnly:
46
+                typeof interfaceConfig !== 'undefined'
47
+                    && interfaceConfig.filmStripOnly
46 48
         };
47 49
     }
48 50
 

Loading…
취소
저장