Skip to content

Commit aecb23f

Browse files
author
Avaer Kazmer
authored
Merge pull request #845 from webmixedreality/supports-session
Add fake vr display supportsSession()
2 parents 88a5743 + aa62281 commit aecb23f

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

src/VR.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -493,6 +493,10 @@ class FakeVRDisplay extends VRDisplay {
493493
return Promise.resolve(session);
494494
}
495495

496+
supportsSession() {
497+
return Promise.resolve(null);
498+
}
499+
496500
get layers() {
497501
return this._layers;
498502
}

src/XR.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ class XRDevice {
4646

4747
this._layers = [];
4848
}
49-
supportsSession({exclusive = false, outputContext = null} = {}) {
49+
supportsSession() {
5050
return Promise.resolve(null);
5151
}
5252
requestSession({exclusive = false, outputContext = null} = {}) {

0 commit comments

Comments
 (0)