Limit audio output selection to chrome - whitelist
This commit is contained in:
@@ -58,6 +58,7 @@ const Settings = ({
|
|||||||
room,
|
room,
|
||||||
me,
|
me,
|
||||||
settings,
|
settings,
|
||||||
|
browser,
|
||||||
onToggleAdvancedMode,
|
onToggleAdvancedMode,
|
||||||
onTogglePermanentTopBar,
|
onTogglePermanentTopBar,
|
||||||
handleCloseSettings,
|
handleCloseSettings,
|
||||||
@@ -233,6 +234,7 @@ const Settings = ({
|
|||||||
</FormHelperText>
|
</FormHelperText>
|
||||||
</FormControl>
|
</FormControl>
|
||||||
</form>
|
</form>
|
||||||
|
{ browser.name === 'chrome' &&
|
||||||
<form className={classes.setting} autoComplete='off'>
|
<form className={classes.setting} autoComplete='off'>
|
||||||
<FormControl className={classes.formControl}>
|
<FormControl className={classes.formControl}>
|
||||||
<Select
|
<Select
|
||||||
@@ -278,6 +280,7 @@ const Settings = ({
|
|||||||
</FormHelperText>
|
</FormHelperText>
|
||||||
</FormControl>
|
</FormControl>
|
||||||
</form>
|
</form>
|
||||||
|
}
|
||||||
<form className={classes.setting} autoComplete='off'>
|
<form className={classes.setting} autoComplete='off'>
|
||||||
<FormControl className={classes.formControl}>
|
<FormControl className={classes.formControl}>
|
||||||
<Select
|
<Select
|
||||||
@@ -409,6 +412,7 @@ Settings.propTypes =
|
|||||||
me : appPropTypes.Me.isRequired,
|
me : appPropTypes.Me.isRequired,
|
||||||
room : appPropTypes.Room.isRequired,
|
room : appPropTypes.Room.isRequired,
|
||||||
settings : PropTypes.object.isRequired,
|
settings : PropTypes.object.isRequired,
|
||||||
|
browser : PropTypes.object.isRequired,
|
||||||
onToggleAdvancedMode : PropTypes.func.isRequired,
|
onToggleAdvancedMode : PropTypes.func.isRequired,
|
||||||
onTogglePermanentTopBar : PropTypes.func.isRequired,
|
onTogglePermanentTopBar : PropTypes.func.isRequired,
|
||||||
handleChangeMode : PropTypes.func.isRequired,
|
handleChangeMode : PropTypes.func.isRequired,
|
||||||
@@ -421,7 +425,8 @@ const mapStateToProps = (state) =>
|
|||||||
return {
|
return {
|
||||||
me : state.me,
|
me : state.me,
|
||||||
room : state.room,
|
room : state.room,
|
||||||
settings : state.settings
|
settings : state.settings,
|
||||||
|
browser : state.me.browser,
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
@@ -441,6 +446,7 @@ export default withRoomContext(connect(
|
|||||||
{
|
{
|
||||||
return (
|
return (
|
||||||
prev.me === next.me &&
|
prev.me === next.me &&
|
||||||
|
prev.me.browser === next.me.browser &&
|
||||||
prev.room === next.room &&
|
prev.room === next.room &&
|
||||||
prev.settings === next.settings
|
prev.settings === next.settings
|
||||||
);
|
);
|
||||||
|
|||||||
Reference in New Issue
Block a user