Skip to content
This repository was archived by the owner on Jan 6, 2025. It is now read-only.

Commit e042453

Browse files
committed
Fix A-Frame requirement
1 parent 3aa0931 commit e042453

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/components/visible.js

+4-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,9 @@
11
import {AFrameComponent} from './AFrameComponent';
22

3-
delete AFRAME.components['visible'];
3+
// kill default visible component, replace with clone
4+
if(window.AFRAME){
5+
delete AFRAME.components['visible'];
6+
}
47

58
export default class Visible extends AFrameComponent {
69
get schema(){ return {default: true}; }

0 commit comments

Comments
 (0)