Skip to content

Commit 458cba5

Browse files
author
Avaer Kazmer
committed
Small asset xr iframes cleanup
1 parent a354cf7 commit 458cba5

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

app.html

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -648,8 +648,7 @@
648648
rtcWs.pushAssets = () => {
649649
const landXrIframe = root.childNodes[0];
650650
const extentXrIframes = _getChildXrIframes(landXrIframe);
651-
let assetXrIframes = extentXrIframes.map(extentXrIframe => _getChildXrIframes(extentXrIframe));
652-
assetXrIframes = assetXrIframes.flat();
651+
const assetXrIframes = extentXrIframes.map(extentXrIframe => _getChildXrIframes(extentXrIframe)).flat();
653652
const html = `<xr-site>\n${assetXrIframes.filter(xrIframe => !!xrIframe.id).map(xrIframe => ' ' + xrIframe.outerHTML).join('\n')}\n</xr-site>\n`;
654653
rtcWs.send(JSON.stringify({
655654
method: 'setInitialHtml',

0 commit comments

Comments
 (0)