浏览代码

match code style

gil noy 6 年之前
父节点
当前提交
835fc845cb
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      examples/js/loaders/GLTFLoader.js

+ 1 - 1
examples/js/loaders/GLTFLoader.js

@@ -1250,7 +1250,7 @@ THREE.GLTFLoader = ( function () {
 		
 		
 		// Host Relative URL
 		// Host Relative URL
 		if ( /^https?:\/\//i.test(path) && /^\//.test(url) ) {
 		if ( /^https?:\/\//i.test(path) && /^\//.test(url) ) {
-		path = path.replace( /(^https?:\/\/[^\/]+).*/i , '$1' );
+			path = path.replace( /(^https?:\/\/[^\/]+).*/i , '$1' );
 		}
 		}
 
 
 		// Absolute URL http://,https://,//
 		// Absolute URL http://,https://,//