From 01ea4166a727b83d1bb360e0627dc78fd6222b21 Mon Sep 17 00:00:00 2001 From: Leon van Kammen Date: Fri, 9 Jun 2023 18:22:19 +0200 Subject: [PATCH] work in progress [might break] --- dist/xrfragment.aframe.js | 2 +- dist/xrfragment.three.js | 2 +- dist/xrfragment.three.module.js | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/dist/xrfragment.aframe.js b/dist/xrfragment.aframe.js index daff9ec..a37073d 100644 --- a/dist/xrfragment.aframe.js +++ b/dist/xrfragment.aframe.js @@ -1118,7 +1118,7 @@ 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(/(\||#q)/) ){ // 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! diff --git a/dist/xrfragment.three.js b/dist/xrfragment.three.js index 7e5b6e2..ffee5f6 100644 --- a/dist/xrfragment.three.js +++ b/dist/xrfragment.three.js @@ -1118,7 +1118,7 @@ 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(/(\||#q)/) ){ // 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! diff --git a/dist/xrfragment.three.module.js b/dist/xrfragment.three.module.js index d91dc4c..d4943f5 100644 --- a/dist/xrfragment.three.module.js +++ b/dist/xrfragment.three.module.js @@ -1118,7 +1118,7 @@ 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(/(\||#q)/) ){ // 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!