File tree Expand file tree Collapse file tree 1 file changed +9
-12
lines changed Expand file tree Collapse file tree 1 file changed +9
-12
lines changed Original file line number Diff line number Diff line change @@ -7,13 +7,20 @@ var WEBVR = {
7
7
8
8
isLatestAvailable : function ( ) {
9
9
10
- return navigator . getVRDisplays !== undefined ;
10
+ console . warn ( 'WEBVR: isLatestAvailable() is being deprecated. Use .isAvailable() instead.' ) ;
11
+ return this . isAvailable ( ) ;
11
12
12
13
} ,
13
14
14
15
isAvailable : function ( ) {
15
16
16
- return navigator . getVRDisplays !== undefined || navigator . getVRDevices !== undefined ;
17
+ return navigator . getVRDisplays !== undefined ;
18
+
19
+ } ,
20
+
21
+ getDisplays : function ( ) {
22
+
23
+ return navigator . getVRDisplays ( ) ;
17
24
18
25
} ,
19
26
@@ -29,10 +36,6 @@ var WEBVR = {
29
36
30
37
} ) ;
31
38
32
- } else if ( navigator . getVRDevices ) {
33
-
34
- message = 'Your browser supports WebVR but not the latest version. See <a href="http://webvr.info">webvr.info</a> for more info.' ;
35
-
36
39
} else {
37
40
38
41
message = 'Your browser does not support WebVR. See <a href="http://webvr.info">webvr.info</a> for assistance.' ;
@@ -100,12 +103,6 @@ var WEBVR = {
100
103
101
104
return button ;
102
105
103
- } ,
104
-
105
- getDisplays : function ( ) {
106
-
107
- return navigator . getVRDisplays ( ) ;
108
-
109
106
}
110
107
111
108
} ;
You can’t perform that action at this time.
0 commit comments