Skip to content
Snippets Groups Projects
Commit b81291f2 authored by Greg Fodor's avatar Greg Fodor
Browse files

Remove unnecessary state and logging

parent a46fd956
No related branches found
No related tags found
No related merge requests found
...@@ -68,22 +68,18 @@ class UIRoot extends Component { ...@@ -68,22 +68,18 @@ class UIRoot extends Component {
state = { state = {
entryStep: ENTRY_STEPS.start, entryStep: ENTRY_STEPS.start,
shareScreen: false, shareScreen: false
enterInVR: false
} }
performDirectEntryFlow = async (enterInVR) => { performDirectEntryFlow = async (enterInVR) => {
this.setState({ enterInVR });
if (enterInVR) { if (enterInVR) {
// Have to do this
document.querySelector("a-scene").enterVR(); document.querySelector("a-scene").enterVR();
} }
const hasMic = await hasGrantedMicPermissions(); const hasMic = await hasGrantedMicPermissions();
console.log("A");
if (hasMic) { if (hasMic) {
console.log("B");
await this.getMediaStreamAndEnterScene(); await this.getMediaStreamAndEnterScene();
} else { } else {
this.setState({ entryStep: ENTRY_STEPS.mic_check }); this.setState({ entryStep: ENTRY_STEPS.mic_check });
......
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