浏览代码

Fix typo in WebVR.js

Takahiro 5 年之前
父节点
当前提交
60efde67dc
共有 2 个文件被更改,包括 2 次插入2 次删除
  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 ) {