From f7e56a8f9fc4a550c9dfef11a91727d3711f9112 Mon Sep 17 00:00:00 2001 From: Diego Marcos Segura Date: Tue, 14 Nov 2023 21:32:40 -0800 Subject: [PATCH] Fix typo on layers WebXR feature name and features list --- src/components/layer.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/components/layer.js b/src/components/layer.js index e09deb3ac46..d9db209e307 100644 --- a/src/components/layer.js +++ b/src/components/layer.js @@ -23,9 +23,9 @@ module.exports.Component = registerComponent('layer', { this.frameBuffer = gl.createFramebuffer(); var webxrData = this.el.sceneEl.getAttribute('webxr'); - var requiredFeaturesArray = webxrData.optionalFeatures; + var requiredFeaturesArray = webxrData.requiredFeatures; if (requiredFeaturesArray.indexOf('layers') === -1) { - requiredFeaturesArray.push('laters'); + requiredFeaturesArray.push('layers'); this.el.sceneEl.setAttribute('webxr', webxrData); } this.el.sceneEl.addEventListener('enter-vr', this.onEnterVR);