diff --git a/public/index.html b/public/index.html index fb72813fd4968806d6b44cdb337c7a38515dc9bd..fddc1b5c33b07c4611de41f76f3c6fd5886c58bb 100644 --- a/public/index.html +++ b/public/index.html @@ -517,6 +517,13 @@ document.getElementById('menu-bar').style.display = 'flex'; + currentSession.addEventListener("end", () => { + currentSession = null; + menus.forEach(id => { + document.getElementById(id).style.display = 'none'; + }); + }); + canvas.addEventListener("pointerdown", selectModelFromScene); currentSession.requestAnimationFrame(function onXRFrame(time, frame) {