only apply hack in prod
This commit is contained in:
@@ -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();
|
||||||
|
|||||||
Reference in New Issue
Block a user