Просмотр исходного кода

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

master
virtuacoplenny 7 лет назад
Родитель
Сommit
ea1aef0703
1 измененных файлов: 1 добавлений и 2 удалений
  1. 1
    2
      react/features/toolbox/functions.web.js

+ 1
- 2
react/features/toolbox/functions.web.js Просмотреть файл

28
  * is enabled, false - otherwise.
28
  * is enabled, false - otherwise.
29
  */
29
  */
30
 export function isButtonEnabled(name: string) {
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
 }

Загрузка…
Отмена
Сохранить