Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
/**
* @override to skip rendering HTML overlays when in immersive mode
*/
_doRenderHtmlItems() {
if (this._isImmersive()) {
if (this.renderHtmlItems) {
this.renderHtmlItems(emptyArray)
}
} else {
super._doRenderHtmlItems()
}
}
}
WorldXRFacade.prototype._notifyWorldHandlers = Object.create(
World3DFacade.prototype._notifyWorldHandlers,
{
// notification to end the XR session
endXRSession: {
value: function(source, data) {
if (this.xrSession) {
this.xrSession.end()
}
}
}
}
)
export default WorldXRFacade