We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 10aece0 commit 88ae45dCopy full SHA for 88ae45d
examples/js/WebVR.js
@@ -5,12 +5,18 @@
5
6
var WEBVR = {
7
8
- isAvailable: function () {
+ isLatestAvailable: function () {
9
10
return navigator.getVRDisplays !== undefined;
11
12
},
13
14
+ isAvailable: function () {
15
+
16
+ return navigator.getVRDisplays !== undefined || navigator.getVRDevices !== undefined;
17
18
+ },
19
20
getMessage: function () {
21
22
var message;
@@ -51,7 +57,7 @@ var WEBVR = {
51
57
error.style.backgroundColor = '#fff';
52
58
error.style.color = '#000';
53
59
error.style.padding = '10px 20px';
54
- error.style.margin = '40px';
60
+ error.style.margin = '50px';
55
61
error.style.display = 'inline-block';
56
62
error.innerHTML = message;
63
container.appendChild( error );
0 commit comments