From 4487e38c4a202bdde80a8793e16ed268ed4a2f81 Mon Sep 17 00:00:00 2001 From: Leon van Kammen Date: Fri, 9 Jun 2023 18:01:50 +0200 Subject: [PATCH] temporary bugfix queries --- dist/xrfragment.aframe.js | 3 ++- dist/xrfragment.three.js | 3 ++- dist/xrfragment.three.module.js | 3 ++- src/3rd/js/three/xrf/href.js | 3 ++- 4 files changed, 8 insertions(+), 4 deletions(-) diff --git a/dist/xrfragment.aframe.js b/dist/xrfragment.aframe.js index c8ad43a..daff9ec 100644 --- a/dist/xrfragment.aframe.js +++ b/dist/xrfragment.aframe.js @@ -1118,7 +1118,8 @@ xrf.frag.href = function(v, opts){ xrf .emit('href',{click:true,mesh,xrf:v}) // let all listeners agree .then( () => { - if( v.string[0] == '#' && v.string.match(/\|/) ){ // apply modifications to scene + if( v.string[0] == '#' && v.string.match(/(\||#q)/) ){ // apply modifications to scene + console.log("ja") xrf.eval( v.string, xrf.model, xrf.XRF.PV_OVERRIDE ) }else xrf.navigator.to(v.string) // or let's surf to HREF! }) diff --git a/dist/xrfragment.three.js b/dist/xrfragment.three.js index f42dede..7e5b6e2 100644 --- a/dist/xrfragment.three.js +++ b/dist/xrfragment.three.js @@ -1118,7 +1118,8 @@ xrf.frag.href = function(v, opts){ xrf .emit('href',{click:true,mesh,xrf:v}) // let all listeners agree .then( () => { - if( v.string[0] == '#' && v.string.match(/\|/) ){ // apply modifications to scene + if( v.string[0] == '#' && v.string.match(/(\||#q)/) ){ // apply modifications to scene + console.log("ja") xrf.eval( v.string, xrf.model, xrf.XRF.PV_OVERRIDE ) }else xrf.navigator.to(v.string) // or let's surf to HREF! }) diff --git a/dist/xrfragment.three.module.js b/dist/xrfragment.three.module.js index 92de644..d91dc4c 100644 --- a/dist/xrfragment.three.module.js +++ b/dist/xrfragment.three.module.js @@ -1118,7 +1118,8 @@ xrf.frag.href = function(v, opts){ xrf .emit('href',{click:true,mesh,xrf:v}) // let all listeners agree .then( () => { - if( v.string[0] == '#' && v.string.match(/\|/) ){ // apply modifications to scene + if( v.string[0] == '#' && v.string.match(/(\||#q)/) ){ // apply modifications to scene + console.log("ja") xrf.eval( v.string, xrf.model, xrf.XRF.PV_OVERRIDE ) }else xrf.navigator.to(v.string) // or let's surf to HREF! }) diff --git a/src/3rd/js/three/xrf/href.js b/src/3rd/js/three/xrf/href.js index 61638c1..152d815 100644 --- a/src/3rd/js/three/xrf/href.js +++ b/src/3rd/js/three/xrf/href.js @@ -93,7 +93,8 @@ xrf.frag.href = function(v, opts){ xrf .emit('href',{click:true,mesh,xrf:v}) // let all listeners agree .then( () => { - if( v.string[0] == '#' && v.string.match(/\|/) ){ // apply modifications to scene + if( v.string[0] == '#' && v.string.match(/(\||#q)/) ){ // apply modifications to scene *TODO* decide on queries... + console.log("ja") xrf.eval( v.string, xrf.model, xrf.XRF.PV_OVERRIDE ) }else xrf.navigator.to(v.string) // or let's surf to HREF! })