Explorar o código

Fix typo in WebVR.js

Takahiro %!s(int64=6) %!d(string=hai) anos
pai
achega
60efde67dc
Modificáronse 2 ficheiros con 2 adicións e 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 ) {