aframe: allow empty init
This commit is contained in:
parent
5bc67f2b6b
commit
436ed610d1
1 changed files with 11 additions and 11 deletions
|
|
@ -3,7 +3,7 @@ window.AFRAME.registerComponent('xrf', {
|
||||||
},
|
},
|
||||||
init: function () {
|
init: function () {
|
||||||
if( !AFRAME.XRF ) this.initXRFragments()
|
if( !AFRAME.XRF ) this.initXRFragments()
|
||||||
if( this.data ){
|
if( typeof this.data == "string" ){
|
||||||
if( document.location.search || document.location.hash.length > 1 ){ // override url
|
if( document.location.search || document.location.hash.length > 1 ){ // override url
|
||||||
this.data = `${document.location.search.substr(1)}${document.location.hash}`
|
this.data = `${document.location.search.substr(1)}${document.location.hash}`
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue