Skip to content
Snippets Groups Projects
Commit c0afdb3a authored by Brian Peiris's avatar Brian Peiris
Browse files

simplify method name

parent 211c9a4e
No related branches found
No related tags found
No related merge requests found
......@@ -262,9 +262,9 @@ class UIRoot extends Component {
await this.setupNewMediaStream({ audio: true, video: this.mediaVideoConstraint() });
}
setStateAndRequestScreenIfEnabled = (e) => {
setStateAndRequestScreen = (e) => {
const checked = e.target.checked;
this.setState({requestedScreen: true, shareScreen: checked}, () => {
this.setState({ requestedScreen: true, shareScreen: checked }, () => {
this.setupNewMediaStream({ video: this.mediaVideoConstraint() });
});
}
......@@ -426,7 +426,7 @@ class UIRoot extends Component {
<label className="entry-panel__screensharing">
<input className="entry-panel__screensharing-checkbox" type="checkbox"
value={this.state.shareScreen}
onChange={this.setStateAndRequestScreenIfEnabled}
onChange={this.setStateAndRequestScreen}
/>
<FormattedMessage id="entry.enable-screensharing" />
</label>) }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment