blob: c15003a6c308434dff7004d22e584a5b61a1bcaa (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
|
function runVRTest(callback) {
SpecialPowers.pushPrefEnv(
{
set: [
["dom.vr.enabled", true],
["dom.vr.puppet.enabled", true],
["dom.vr.require-gesture", false],
["dom.vr.test.enabled", true],
["dom.vr.display.enumerate.interval", 0],
["dom.vr.controller.enumerate.interval", 0],
],
},
() => {
VRServiceTest = navigator.requestVRServiceTest();
callback();
}
);
}
|