Explorar el Código

Merge pull request #10118 from masap/webvr

Replace deprecated WebVR function with new one
Mr.doob hace 8 años
padre
commit
f2aa089de0

+ 1 - 1
examples/webvr_cubes.html

@@ -27,7 +27,7 @@
 
 		<script>
 
-			if ( WEBVR.isLatestAvailable() === false ) {
+			if ( WEBVR.isAvailable() === false ) {
 
 				document.body.appendChild( WEBVR.getMessage() );
 

+ 1 - 1
examples/webvr_panorama.html

@@ -23,7 +23,7 @@
 
 		<script>
 
-		if ( WEBVR.isLatestAvailable() === false ) {
+		if ( WEBVR.isAvailable() === false ) {
 
 			document.body.appendChild( WEBVR.getMessage() );
 

+ 1 - 1
examples/webvr_rollercoaster.html

@@ -29,7 +29,7 @@
 
 		<script>
 
-			if ( WEBVR.isLatestAvailable() === false ) {
+			if ( WEBVR.isAvailable() === false ) {
 
 				document.body.appendChild( WEBVR.getMessage() );
 

+ 1 - 1
examples/webvr_shadow.html

@@ -21,7 +21,7 @@
 
 		<script>
 
-			if ( WEBVR.isLatestAvailable() === false ) {
+			if ( WEBVR.isAvailable() === false ) {
 
 				document.body.appendChild( WEBVR.getMessage() );
 

+ 1 - 1
examples/webvr_video.html

@@ -38,7 +38,7 @@
 
 		<script>
 
-			if ( WEBVR.isLatestAvailable() === false ) {
+			if ( WEBVR.isAvailable() === false ) {
 
 				document.body.appendChild( WEBVR.getMessage() );
 

+ 1 - 1
examples/webvr_vive.html

@@ -30,7 +30,7 @@
 
 		<script>
 
-			if ( WEBVR.isLatestAvailable() === false ) {
+			if ( WEBVR.isAvailable() === false ) {
 
 				document.body.appendChild( WEBVR.getMessage() );
 

+ 1 - 1
examples/webvr_vive_dragging.html

@@ -30,7 +30,7 @@
 
 		<script>
 
-			if ( WEBVR.isLatestAvailable() === false ) {
+			if ( WEBVR.isAvailable() === false ) {
 
 				document.body.appendChild( WEBVR.getMessage() );
 

+ 1 - 1
examples/webvr_vive_paint.html

@@ -31,7 +31,7 @@
 
 		<script>
 
-			if ( WEBVR.isLatestAvailable() === false ) {
+			if ( WEBVR.isAvailable() === false ) {
 
 				document.body.appendChild( WEBVR.getMessage() );
 

+ 1 - 1
examples/webvr_vive_sculpt.html

@@ -31,7 +31,7 @@
 
 		<script>
 
-			if ( WEBVR.isLatestAvailable() === false ) {
+			if ( WEBVR.isAvailable() === false ) {
 
 				document.body.appendChild( WEBVR.getMessage() );