From 49bdd53bee9666f84d67c270112ff6b4eef85fa2 Mon Sep 17 00:00:00 2001 From: Radium Zheng Date: Fri, 3 Aug 2018 05:46:11 +1000 Subject: [PATCH] Fix issue on mobile platforms --- .../local-recording/components/LocalRecordingLabel.native.js | 0 .../{LocalRecordingLabel.js => LocalRecordingLabel.web.js} | 0 react/features/local-recording/middleware.js | 2 +- 3 files changed, 1 insertion(+), 1 deletion(-) create mode 100644 react/features/local-recording/components/LocalRecordingLabel.native.js rename react/features/local-recording/components/{LocalRecordingLabel.js => LocalRecordingLabel.web.js} (100%) diff --git a/react/features/local-recording/components/LocalRecordingLabel.native.js b/react/features/local-recording/components/LocalRecordingLabel.native.js new file mode 100644 index 000000000..e69de29bb diff --git a/react/features/local-recording/components/LocalRecordingLabel.js b/react/features/local-recording/components/LocalRecordingLabel.web.js similarity index 100% rename from react/features/local-recording/components/LocalRecordingLabel.js rename to react/features/local-recording/components/LocalRecordingLabel.web.js diff --git a/react/features/local-recording/middleware.js b/react/features/local-recording/middleware.js index 0465459ad..3f834c26a 100644 --- a/react/features/local-recording/middleware.js +++ b/react/features/local-recording/middleware.js @@ -17,7 +17,7 @@ import { recordingController } from './controller'; declare var APP: Object; declare var config: Object; -const isFeatureEnabled = config.localRecording +const isFeatureEnabled = typeof config === 'object' && config.localRecording && config.localRecording.enabled === true; isFeatureEnabled