未验证 提交 5e774c97 编写于 作者: D Don McCurdy 提交者: GitHub

Match code style.

上级 835fc845
......@@ -371,8 +371,7 @@ THREE.GLTFLoader = ( function () {
lightNode.name = lightDef.name || ( 'light_' + lightIndex );
return Promise.
( lightNode );
return Promise.resolve( lightNode );
};
......@@ -1249,8 +1248,10 @@ THREE.GLTFLoader = ( function () {
if ( typeof url !== 'string' || url === '' ) return '';
// Host Relative URL
if ( /^https?:\/\//i.test(path) && /^\//.test(url) ) {
if ( /^https?:\/\//i.test( path ) && /^\//.test( url ) ) {
path = path.replace( /(^https?:\/\/[^\/]+).*/i , '$1' );
}
// Absolute URL http://,https://,//
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册