From 2d7b0b0febd2ad3d6f2c1850b3714ea27edf67ee Mon Sep 17 00:00:00 2001
From: Cantuerk <21caog1bif@hft-stuttgart.de>
Date: Fri, 3 Jan 2025 17:37:48 +0000
Subject: [PATCH] Update public/index.html

---
 public/index.html | 7 +++++++
 1 file changed, 7 insertions(+)

diff --git a/public/index.html b/public/index.html
index fb72813..fddc1b5 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) {
-- 
GitLab