Explorar el Código

Fix typo in WebVR.js

Takahiro hace 6 años
padre
commit
60efde67dc
Se han modificado 2 ficheros con 2 adiciones y 2 borrados
  1. 1 1
      examples/js/vr/WebVR.js
  2. 1 1
      examples/jsm/vr/WebVR.js

+ 1 - 1
examples/js/vr/WebVR.js

@@ -176,7 +176,7 @@ THREE.WEBVR = {
 
 			stylizeElement( button );
 
-			navigator.xr.isSessionSupported( 'immersive-vr' ).then( funciton ( supported ) {
+			navigator.xr.isSessionSupported( 'immersive-vr' ).then( function ( supported ) {
 
 				if ( supported ) {
 

+ 1 - 1
examples/jsm/vr/WebVR.js

@@ -178,7 +178,7 @@ var WEBVR = {
 
 			stylizeElement( button );
 
-			navigator.xr.isSessionSupported( 'immersive-vr' ).then( funciton ( supported ) {
+			navigator.xr.isSessionSupported( 'immersive-vr' ).then( function ( supported ) {
 
 				if ( supported ) {