diff --git a/src/components/hack.js b/src/components/hack.js index 3fd8b22..47a150b 100644 --- a/src/components/hack.js +++ b/src/components/hack.js @@ -1,5 +1,6 @@ AFRAME.registerComponent('hack', { play: function () { + if (process.env.NODE_ENV !== 'production') { return; } const interval = setInterval(() => { if (!this.el.sceneEl.is('vr-mode')) { this.el.sceneEl.enterVR();