From e0424531d94c1fa6e3a8d3eab23d1eb1bebb7df5 Mon Sep 17 00:00:00 2001 From: Steven Vergenz Date: Thu, 30 Nov 2017 10:18:45 -0800 Subject: [PATCH] Fix A-Frame requirement --- src/components/visible.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/components/visible.js b/src/components/visible.js index e638f787..e9180f67 100644 --- a/src/components/visible.js +++ b/src/components/visible.js @@ -1,6 +1,9 @@ import {AFrameComponent} from './AFrameComponent'; -delete AFRAME.components['visible']; +// kill default visible component, replace with clone +if(window.AFRAME){ + delete AFRAME.components['visible']; +} export default class Visible extends AFrameComponent { get schema(){ return {default: true}; }