diff --git a/src/components/stats-param.js b/src/components/stats-param.js new file mode 100644 index 0000000..389bacc --- /dev/null +++ b/src/components/stats-param.js @@ -0,0 +1,7 @@ +AFRAME.registerComponent('stats-param', { + init: function () { + if (AFRAME.utils.getUrlParameter('stats') === 'true') { + this.el.setAttribute('stats', ''); + } + } +}); diff --git a/src/index.html b/src/index.html index 4e49db6..d6087e6 100644 --- a/src/index.html +++ b/src/index.html @@ -52,6 +52,7 @@ play-sound__crescendo="sound: #crescendo; event: victory; volume: 0.75" search stage-colors="color: blue" + stats-param vr-mode-ui="enterVRButton: #vrButton" tutorial-2d>