Преглед изворни кода

[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
              *
42
              *
43
              * @type {boolean}
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…
Откажи
Сачувај