Skip to content

Commit b4f30d7

Browse files
author
Avaer Kazmer
committed
Post xr mode detection from window to parent
1 parent f84db44 commit b4f30d7

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/Document.js

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -209,6 +209,11 @@ function initDocument (document, window) {
209209

210210
document.dispatchEvent(new Event('load', {target: document}));
211211
window.dispatchEvent(new Event('load', {target: window}));
212+
213+
parentPort.postMessage({
214+
method: 'xrMode',
215+
xr: GlobalContext.requestedXr,
216+
});
212217
});
213218

214219
return document;

0 commit comments

Comments
 (0)