From 0a1bdd5024f44d9023b29daee41415f9cbac4066 Mon Sep 17 00:00:00 2001 From: Leon van Kammen Date: Thu, 22 Jun 2023 12:15:02 +0200 Subject: [PATCH] threejs demo bugfix --- example/threejs/sandbox/index.html | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/example/threejs/sandbox/index.html b/example/threejs/sandbox/index.html index e248747..8f7eacd 100644 --- a/example/threejs/sandbox/index.html +++ b/example/threejs/sandbox/index.html @@ -62,6 +62,7 @@ }; init(); + alert("for now, back-button (navigation) is only implemented in the AFRAME demo-implementation") function init() { @@ -123,7 +124,7 @@ window.XRF = XRF // expose to form - let file = document.location.search.length > 2 ? document.location.search.substr(1) + document.location.hash : './../../assets/example.gltf#pos=1,0,4&rot=0,-30,0' + let file = document.location.search.length > 2 ? document.location.search.substr(1) + document.location.hash : 'example.gltf#pos=1,0,4&rot=0,-30,0' $('#model').setAttribute("href","./../../asset/"+file) XRF.navigator.to( file )