add stats-param

This commit is contained in:
Kevin Ngo
2018-12-07 18:11:00 -08:00
parent 32ea46e79b
commit 709b27772f
2 changed files with 8 additions and 0 deletions

View File

@@ -0,0 +1,7 @@
AFRAME.registerComponent('stats-param', {
init: function () {
if (AFRAME.utils.getUrlParameter('stats') === 'true') {
this.el.setAttribute('stats', '');
}
}
});