From 3236a18a0bdc8c42deb60bd341433358c86f33b6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?M=C3=A9sz=C3=A1ros=20Mih=C3=A1ly?= Date: Wed, 22 Apr 2020 12:33:37 +0200 Subject: [PATCH] Limit audio output selection to chrome - whitelist --- app/src/components/Settings/Settings.js | 98 +++++++++++++------------ 1 file changed, 52 insertions(+), 46 deletions(-) diff --git a/app/src/components/Settings/Settings.js b/app/src/components/Settings/Settings.js index c5fa353..ad1d245 100644 --- a/app/src/components/Settings/Settings.js +++ b/app/src/components/Settings/Settings.js @@ -58,6 +58,7 @@ const Settings = ({ room, me, settings, + browser, onToggleAdvancedMode, onTogglePermanentTopBar, handleCloseSettings, @@ -233,51 +234,53 @@ const Settings = ({ -
- - - - { audioOutputDevices.length > 0 ? - intl.formatMessage({ - id : 'settings.selectAudioOutput', - defaultMessage : 'Select audio output device' - }) - : - intl.formatMessage({ - id : 'settings.cantSelectAudioOutput', - defaultMessage : 'Unable to select audio output device' - }) - } - - -
+ { browser.name === 'chrome' && +
+ + + + { audioOutputDevices.length > 0 ? + intl.formatMessage({ + id : 'settings.selectAudioOutput', + defaultMessage : 'Select audio output device' + }) + : + intl.formatMessage({ + id : 'settings.cantSelectAudioOutput', + defaultMessage : 'Unable to select audio output device' + }) + } + + +
+ }