mirror of
https://gitcode.com/GitHub_Trending/ji/jitsi-meet.git
synced 2025-12-30 11:22:31 +00:00
fix(settings): respect configWhitelist
This commit is contained in:
@@ -1,5 +1,6 @@
|
||||
export * from './actions';
|
||||
export * from './actionTypes';
|
||||
export { default as CONFIG_WHITELIST } from './configWhitelist';
|
||||
export * from './functions';
|
||||
|
||||
import './middleware';
|
||||
|
||||
@@ -1,6 +1,5 @@
|
||||
// @flow
|
||||
|
||||
import { parseURLParams } from '../config';
|
||||
import { CONFIG_WHITELIST, parseURLParams } from '../config';
|
||||
import { toState } from '../redux';
|
||||
|
||||
import { DEFAULT_SERVER_URL } from './constants';
|
||||
@@ -55,12 +54,14 @@ export function getPropertyValue(
|
||||
|
||||
// urlParams
|
||||
if (sources.urlParams) {
|
||||
const urlParams
|
||||
= parseURLParams(state['features/base/connection'].locationURL);
|
||||
const value = urlParams[`config.${propertyName}`];
|
||||
if (CONFIG_WHITELIST.indexOf(propertyName) !== -1) {
|
||||
const urlParams
|
||||
= parseURLParams(state['features/base/connection'].locationURL);
|
||||
const value = urlParams[`config.${propertyName}`];
|
||||
|
||||
if (typeof value !== 'undefined') {
|
||||
return value;
|
||||
if (typeof value !== 'undefined') {
|
||||
return value;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user