Skip to content

Commit 7ec3045

Browse files
author
Avaer Kazmer
committed
Small method renaming
1 parent 43be6d4 commit 7ec3045

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

app.html

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -707,8 +707,8 @@
707707
};
708708
rtcWs.pushAssets = () => {
709709
const landXrIframe = root.childNodes[0];
710-
const extentXrIframes = _getExtentXrIframes(landXrIframe);
711-
const assetXrIframes = extentXrIframes.map(extentXrIframe => _getChildXrIframes(extentXrIframe)).flat();
710+
const extentXrIframes = _getUnownedXrIframes(landXrIframe);
711+
const assetXrIframes = extentXrIframes.map(extentXrIframe => _getUnownedXrIframes(extentXrIframe)).flat();
712712
const html = `<xr-site>\n${assetXrIframes.filter(xrIframe => !!xrIframe.id).map(xrIframe => ' ' + xrIframe.outerHTML).join('\n')}\n</xr-site>\n`;
713713
rtcWs.send(JSON.stringify({
714714
method: 'setInitialHtml',
@@ -3694,7 +3694,7 @@
36943694
const rects = [];
36953695
const covers = [];
36963696
const _getChildXrIframes = xrIframe => Array.from(xrIframe.contentWindow.iframe.contentDocument.querySelectorAll('xr-iframe'));
3697-
const _getExtentXrIframes = xrIframe => _getChildXrIframes(xrIframe).filter(xrIframe => !/^owned:/.test(xrIframe.id));
3697+
const _getUnownedXrIframes = xrIframe => _getChildXrIframes(xrIframe).filter(xrIframe => !/^owned:/.test(xrIframe.id));
36983698
const _getOwnedXrIframes = xrIframe => _getChildXrIframes(xrIframe).filter(xrIframe => /^owned:/.test(xrIframe.id));
36993699
const _connectLand = async () => {
37003700
if (!landState) {
@@ -3715,7 +3715,7 @@
37153715
xrIframe.addEventListener('error', reject);
37163716
});
37173717
if (!live) return;
3718-
const xrIframes = _getExtentXrIframes(xrIframe);
3718+
const xrIframes = _getUnownedXrIframes(xrIframe);
37193719

37203720
const _loadInventory = () => {
37213721
fetch(`${LAMBDA_URLS.inventory}?email=${encodeURIComponent(loginToken.email)}&token=${encodeURIComponent(loginToken.token)}`)
@@ -4359,8 +4359,8 @@
43594359
// emit extent's id'd xr-iframes
43604360

43614361
const landXrIframe = root.childNodes[0];
4362-
const extentXrIframes = _getExtentXrIframes(landXrIframe);
4363-
const assetXrIframes = extentXrIframes.map(extentXrIframe => _getChildXrIframes(extentXrIframe)).flat();
4362+
const extentXrIframes = _getUnownedXrIframes(landXrIframe);
4363+
const assetXrIframes = extentXrIframes.map(extentXrIframe => _getUnownedXrIframes(extentXrIframe)).flat();
43644364

43654365
const stateXrSite = state.childNodes.find(node => node.tagName === 'xr-site');
43664366
const stateXrIframes = stateXrSite ? stateXrSite.childNodes.filter(node => node.tagName === 'xr-iframe') : [];

0 commit comments

Comments
 (0)