|
|
@@ -13,8 +13,13 @@ import { LocalRecordingInfoDialog } from './components';
|
|
13
|
13
|
import { recordingController } from './controller';
|
|
14
|
14
|
|
|
15
|
15
|
declare var APP: Object;
|
|
|
16
|
+declare var config: Object;
|
|
16
|
17
|
|
|
17
|
|
-MiddlewareRegistry.register(({ getState, dispatch }) => next => action => {
|
|
|
18
|
+const isFeatureEnabled = config.localRecording
|
|
|
19
|
+ && config.localRecording.enabled === true;
|
|
|
20
|
+
|
|
|
21
|
+isFeatureEnabled
|
|
|
22
|
+&& MiddlewareRegistry.register(({ getState, dispatch }) => next => action => {
|
|
18
|
23
|
const result = next(action);
|
|
19
|
24
|
|
|
20
|
25
|
switch (action.type) {
|