update documentation

This commit is contained in:
Leon van Kammen 2023-11-01 13:05:38 +01:00
parent 8d124330d5
commit 839dad5f36
2 changed files with 2 additions and 2 deletions

View File

@ -7,7 +7,7 @@ This is a library of useful AFRAME components which can be used in any AFRAME ap
# Usage
```html
<script src="https://cdn.jsdelivr.net/gh/coderofsalvation/webxros-apps/helloworld.js"/>
<script src="https://coderofsalvation.github.io/webxros-apps/helloworld.js"/>
<a-entity helloworld="foo:1" class="cubes" name="box">
```

View File

@ -8,7 +8,7 @@ AFRAME.registerComponent('helloworld', {
let scene = document.querySelector('a-scene').object3D
// webxros events are optional, but can be listed here
scene.addEventListener('tty', (tty) = > {
scene.addEventListener('tty', (tty) => {
tty.write("hello terminal from XR")
tty.on('stdout', (data) => {
// react to data being spoken/typed into the terminal