Browse Source

Fix typo in WebVR.js

Takahiro 6 năm trước cách đây
mục cha
commit
60efde67dc
2 tập tin đã thay đổi với 2 bổ sung2 xóa
  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 ) {