From 5a51eaa59d568e49dd5bae91b2b9951851609b32 Mon Sep 17 00:00:00 2001 From: Leon van Kammen Date: Fri, 3 Nov 2023 12:00:36 +0100 Subject: [PATCH] work in progress [might break] --- helloworld.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/helloworld.js b/helloworld.js index db7c658..0308ef4 100644 --- a/helloworld.js +++ b/helloworld.js @@ -3,7 +3,7 @@ AFRAME.registerComponent('helloworld', { init: function () { - let obj = this.object3D + let obj = this.el.object3D // entrypoint for single-file xrshell/THREE/AFRAME components obj.addEventListener('xrshell', (opts) => {