Skip to content

Commit 88ae45d

Browse files
committed
WebVR.js: isAvailable to isLatestAvailable.
1 parent 10aece0 commit 88ae45d

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

examples/js/WebVR.js

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,12 +5,18 @@
55

66
var WEBVR = {
77

8-
isAvailable: function () {
8+
isLatestAvailable: function () {
99

1010
return navigator.getVRDisplays !== undefined;
1111

1212
},
1313

14+
isAvailable: function () {
15+
16+
return navigator.getVRDisplays !== undefined || navigator.getVRDevices !== undefined;
17+
18+
},
19+
1420
getMessage: function () {
1521

1622
var message;
@@ -51,7 +57,7 @@ var WEBVR = {
5157
error.style.backgroundColor = '#fff';
5258
error.style.color = '#000';
5359
error.style.padding = '10px 20px';
54-
error.style.margin = '40px';
60+
error.style.margin = '50px';
5561
error.style.display = 'inline-block';
5662
error.innerHTML = message;
5763
container.appendChild( error );

0 commit comments

Comments
 (0)