only apply hack in prod

This commit is contained in:
Kevin Ngo
2018-12-11 02:07:07 -08:00
parent 1228d0e16f
commit f09d59b815

View File

@@ -1,5 +1,6 @@
AFRAME.registerComponent('hack', { AFRAME.registerComponent('hack', {
play: function () { play: function () {
if (process.env.NODE_ENV !== 'production') { return; }
const interval = setInterval(() => { const interval = setInterval(() => {
if (!this.el.sceneEl.is('vr-mode')) { if (!this.el.sceneEl.is('vr-mode')) {
this.el.sceneEl.enterVR(); this.el.sceneEl.enterVR();