瀏覽代碼

fix(config) avoid using legacy config options

If the new ones are specified, use them.
j8
Saúl Ibarra Corretgé 4 年之前
父節點
當前提交
433e212e20
共有 1 個檔案被更改,包括 2 行新增1 行删除
  1. 2
    1
      react/features/base/config/reducer.js

+ 2
- 1
react/features/base/config/reducer.js 查看文件

224
         }
224
         }
225
     });
225
     });
226
 
226
 
227
-    if (typeof interfaceConfig === 'object' && Array.isArray(interfaceConfig.TOOLBAR_BUTTONS)) {
227
+    if (!Array.isArray(oldValue.toolbarButtons)
228
+            && typeof interfaceConfig === 'object' && Array.isArray(interfaceConfig.TOOLBAR_BUTTONS)) {
228
         newValue.toolbarButtons = interfaceConfig.TOOLBAR_BUTTONS;
229
         newValue.toolbarButtons = interfaceConfig.TOOLBAR_BUTTONS;
229
     }
230
     }
230
 
231
 

Loading…
取消
儲存