Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
setMuted(muted) {
if (this.state.showEnableAudio) {
XR.enableAudio(this.props.sceneName);
this.setState({showEnableAudio: false});
}
XR.setMuted(this.props.sceneName, muted);
this.setState({ muted: muted });
}
setMuted(muted) {
if (this.state.showEnableAudio) {
XR.enableAudio(this.props.sceneName);
this.setState({showEnableAudio: false});
}
XR.setMuted(this.props.sceneName, muted);
this.setState({ muted: muted });
}
setMuted(muted) {
if (this.showEnableAudio) {
XR.enableAudio(this.sceneName);
this.showEnableAudio = false;
}
XR.setMuted(this.sceneName, muted);
this.muted = muted;
}