threejs demo bugfix

This commit is contained in:
Leon van Kammen 2023-06-22 12:15:02 +02:00
parent d5967b59f2
commit 0a1bdd5024
1 changed files with 2 additions and 1 deletions

View File

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