Browse Source

Fix typo in WebVR.js

Takahiro 5 years ago
parent
commit
60efde67dc
2 changed files with 2 additions and 2 deletions
  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 );
 			stylizeElement( button );
 
 
-			navigator.xr.isSessionSupported( 'immersive-vr' ).then( funciton ( supported ) {
+			navigator.xr.isSessionSupported( 'immersive-vr' ).then( function ( supported ) {
 
 
 				if ( supported ) {
 				if ( supported ) {
 
 

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

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