temporary bugfix queries

This commit is contained in:
Leon van Kammen 2023-06-09 18:01:50 +02:00
parent 38c305f13d
commit 4487e38c4a
4 changed files with 8 additions and 4 deletions

View file

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

View file

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

View file

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

View file

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