Procházet zdrojové kódy

Fix undefined check.

j8
yanas před 8 roky
rodič
revize
43906a4e30
2 změnil soubory, kde provedl 7 přidání a 2 odebrání
  1. 6
    1
      interface_config.js
  2. 1
    1
      modules/UI/toolbars/Toolbar.js

+ 6
- 1
interface_config.js Zobrazit soubor

20
     // the toolbar buttons line is intentionally left in one line, to be able
20
     // the toolbar buttons line is intentionally left in one line, to be able
21
     // to easily override values or remove them using regex
21
     // to easily override values or remove them using regex
22
     MAIN_TOOLBAR_BUTTONS: ['microphone', 'camera', 'desktop', 'invite', 'fullscreen', 'hangup'], // jshint ignore:line
22
     MAIN_TOOLBAR_BUTTONS: ['microphone', 'camera', 'desktop', 'invite', 'fullscreen', 'hangup'], // jshint ignore:line
23
-    MAIN_TOOLBAR_SPLITTER_INDEX: -1,
23
+    /**
24
+     * The index of the splitter button in the main toolbar. The splitter
25
+     * button is a button in the toolbar that will be applied a special styling
26
+     * visually dividing the toolbar buttons.
27
+     */
28
+    //MAIN_TOOLBAR_SPLITTER_INDEX: -1,
24
     TOOLBAR_BUTTONS: ['profile', 'authentication', 'microphone', 'camera', 'desktop', 'recording', 'security', 'raisehand', 'chat', 'etherpad', 'sharedvideo', 'sip', 'dialpad', 'settings', 'hangup', 'filmstrip', 'contacts'], // jshint ignore:line
29
     TOOLBAR_BUTTONS: ['profile', 'authentication', 'microphone', 'camera', 'desktop', 'recording', 'security', 'raisehand', 'chat', 'etherpad', 'sharedvideo', 'sip', 'dialpad', 'settings', 'hangup', 'filmstrip', 'contacts'], // jshint ignore:line
25
     SETTINGS_SECTIONS: ['language', 'devices', 'moderator'],
30
     SETTINGS_SECTIONS: ['language', 'devices', 'moderator'],
26
     // Determines how the video would fit the screen. 'both' would fit the whole
31
     // Determines how the video would fit the screen. 'both' would fit the whole

+ 1
- 1
modules/UI/toolbars/Toolbar.js Zobrazit soubor

711
                     button,
711
                     button,
712
                     (index === 0),
712
                     (index === 0),
713
                     (index === interfaceConfig.MAIN_TOOLBAR_BUTTONS.length -1),
713
                     (index === interfaceConfig.MAIN_TOOLBAR_BUTTONS.length -1),
714
-                    (interfaceConfig.MAIN_TOOLBAR_SPLITTER_INDEX
714
+                    (interfaceConfig.MAIN_TOOLBAR_SPLITTER_INDEX !== undefined
715
                         && index
715
                         && index
716
                             === interfaceConfig.MAIN_TOOLBAR_SPLITTER_INDEX));
716
                             === interfaceConfig.MAIN_TOOLBAR_SPLITTER_INDEX));
717
             }
717
             }

Načítá se…
Zrušit
Uložit