We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 93915dc commit 7083bf8Copy full SHA for 7083bf8
app.html
@@ -486,6 +486,22 @@
486
skinMeshes.splice(skinMeshes.indexOf(skinMesh), 1);
487
skinMesh = null;
488
}
489
+ if (landState) {
490
+ // remove owned xr-iframes
491
+
492
+ const landXrIframe = root.childNodes[0];
493
+ const ownedXrIframes = _getOwnedXrIframes(landXrIframe);
494
+ for (let i = 0; i < ownedXrIframes.length; i++) {
495
+ const ownedXrIframe = ownedXrIframes[i];
496
+ const match = ownedXrIframe.match(/^owned:(.*?)-/);
497
+ if (match) {
498
+ const ownerId = match[1];
499
+ if (ownerId === peerConnectionId) {
500
+ ownedXrIframe.parentNode.removeChild(ownedXrIframe);
501
+ }
502
503
504
505
};
506
peerConnection.connectionId = peerConnectionId;
507
peerConnection.open = false;
0 commit comments