Explorar el Código

fix(toolbar): remove ref to removed MAIN_TOOLBAR_BUTTONS (#2787)

master
virtuacoplenny hace 7 años
padre
commit
ea1aef0703
Se han modificado 1 ficheros con 1 adiciones y 2 borrados
  1. 1
    2
      react/features/toolbox/functions.web.js

+ 1
- 2
react/features/toolbox/functions.web.js Ver fichero

@@ -28,6 +28,5 @@ export function getToolboxHeight() {
28 28
  * is enabled, false - otherwise.
29 29
  */
30 30
 export function isButtonEnabled(name: string) {
31
-    return interfaceConfig.TOOLBAR_BUTTONS.indexOf(name) !== -1
32
-            || interfaceConfig.MAIN_TOOLBAR_BUTTONS.indexOf(name) !== -1;
31
+    return interfaceConfig.TOOLBAR_BUTTONS.indexOf(name) !== -1;
33 32
 }

Loading…
Cancelar
Guardar