feature flag
This commit is contained in:
@@ -345,7 +345,7 @@ var config = {
|
||||
// shard: "shard1",
|
||||
// region: "europe",
|
||||
// userRegion: "asia"
|
||||
}
|
||||
},
|
||||
|
||||
// Options related to end-to-end (participant to participant) ping.
|
||||
// e2eping: {
|
||||
@@ -408,6 +408,11 @@ var config = {
|
||||
nick
|
||||
startBitrate
|
||||
*/
|
||||
|
||||
localRecording: {
|
||||
enabled: true,
|
||||
format: 'flac'
|
||||
}
|
||||
};
|
||||
|
||||
/* eslint-enable no-unused-vars, no-var */
|
||||
|
||||
@@ -13,8 +13,13 @@ import { LocalRecordingInfoDialog } from './components';
|
||||
import { recordingController } from './controller';
|
||||
|
||||
declare var APP: Object;
|
||||
declare var config: Object;
|
||||
|
||||
MiddlewareRegistry.register(({ getState, dispatch }) => next => action => {
|
||||
const isFeatureEnabled = config.localRecording
|
||||
&& config.localRecording.enabled === true;
|
||||
|
||||
isFeatureEnabled
|
||||
&& MiddlewareRegistry.register(({ getState, dispatch }) => next => action => {
|
||||
const result = next(action);
|
||||
|
||||
switch (action.type) {
|
||||
|
||||
Reference in New Issue
Block a user