From f09d59b8150d9e13264f1f1bc8e0e8a96bd4f883 Mon Sep 17 00:00:00 2001 From: Kevin Ngo Date: Tue, 11 Dec 2018 02:07:07 -0800 Subject: [PATCH] only apply hack in prod --- src/components/hack.js | 1 + 1 file changed, 1 insertion(+) 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();