add stats-param
This commit is contained in:
7
src/components/stats-param.js
Normal file
7
src/components/stats-param.js
Normal file
@@ -0,0 +1,7 @@
|
||||
AFRAME.registerComponent('stats-param', {
|
||||
init: function () {
|
||||
if (AFRAME.utils.getUrlParameter('stats') === 'true') {
|
||||
this.el.setAttribute('stats', '');
|
||||
}
|
||||
}
|
||||
});
|
||||
Reference in New Issue
Block a user