diff --git a/src/framework/xr/xr-anchors.js b/src/framework/xr/xr-anchors.js index aee7568e348..9174c2b27de 100644 --- a/src/framework/xr/xr-anchors.js +++ b/src/framework/xr/xr-anchors.js @@ -169,7 +169,7 @@ class XrAnchors extends EventHandler { /** @private */ _onSessionStart() { - const available = this.manager.session.enabledFeatures.indexOf('anchors') !== -1; + const available = this.manager.session.enabledFeatures?.indexOf('anchors') >= 0; if (!available) return; this._available = available; this.fire('available');