From 8c095cde2a323f4571a1a930c3505392fde41b53 Mon Sep 17 00:00:00 2001 From: Avaer Kazmer Date: Thu, 12 Dec 2019 17:27:05 -0500 Subject: [PATCH] Clean up initial entry flow --- index.html | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/index.html b/index.html index ae990f2..988637c 100644 --- a/index.html +++ b/index.html @@ -1257,11 +1257,11 @@

Multiplayer

}; await _loadReferenceSpace(); const loadReferenceSpaceInterval = setInterval(_loadReferenceSpace, 1000); - - renderer.vr.setSession(session); - - let interations = 0; + await new Promise((accept, reject) => { + renderer.vr.setSession(session); + + let interations = 0; const _raf = (timestamp, frame) => { const pose = frame.getViewerPose(referenceSpace); if (pose) {