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) {