Skip to content

Commit

Permalink
Fix typo on layers WebXR feature name and features list
Browse files Browse the repository at this point in the history
  • Loading branch information
dmarcos committed Nov 15, 2023
1 parent a3f6d12 commit f7e56a8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/components/layer.js
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit f7e56a8

Please sign in to comment.