Skip to content

Commit a354cf7

Browse files
author
Avaer Kazmer
committed
More xr-iframe load debugging
1 parent c238f3f commit a354cf7

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

app.html

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4285,8 +4285,11 @@
42854285
_rtcDisconnect();
42864286
root.innerHTML = '';
42874287

4288-
_rtcConnect('land', loginToken.name, 'land', state => {
4289-
console.log('got land', state);
4288+
_rtcConnect('land', loginToken.name, 'land', async state => {
4289+
await p;
4290+
const xrSite = state.childNodes.find(childNode => childNode.nodeName === 'xr-site');
4291+
const xrIframes = xrSite.childNodes.filter(childNode => childNode.nodeName === 'xr-iframe');
4292+
console.log('got land xr iframes', state, xrIframes);
42904293
});
42914294

42924295
const p = _connectLand();

0 commit comments

Comments
 (0)