ソースを参照

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

master
virtuacoplenny 7年前
コミット
ea1aef0703
1個のファイルの変更1行の追加2行の削除
  1. 1
    2
      react/features/toolbox/functions.web.js

+ 1
- 2
react/features/toolbox/functions.web.js ファイルの表示

@@ -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
 }

読み込み中…
キャンセル
保存