Skip to content

Commit

Permalink
Add HTMLIframeElement xrmode event capture and emit
Browse files Browse the repository at this point in the history
  • Loading branch information
Avaer Kazmer committed Aug 6, 2019
1 parent c86d057 commit fbbb193
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions src/DOM.js
Original file line number Diff line number Diff line change
Expand Up @@ -2221,6 +2221,13 @@ class HTMLIFrameElement extends HTMLSrcableElement {
onrequest(req) {
parentPort.postMessage(req);
},
onxrmode(event) {
this.dispatchEvent(new CustomEvent('xrmode', {
detail: {
xr: event.xr,
},
}));
},
onhapticpulse(event) {
parentPort.postMessage({
method: 'emit',
Expand Down

0 comments on commit fbbb193

Please sign in to comment.