|
@@ -371,7 +371,8 @@ THREE.GLTFLoader = ( function () {
|
|
|
|
|
|
lightNode.name = lightDef.name || ( 'light_' + lightIndex );
|
|
|
|
|
|
- return Promise.resolve( lightNode );
|
|
|
+ return Promise.
|
|
|
+ ( lightNode );
|
|
|
|
|
|
};
|
|
|
|
|
@@ -1248,8 +1249,8 @@ THREE.GLTFLoader = ( function () {
|
|
|
if ( typeof url !== 'string' || url === '' ) return '';
|
|
|
|
|
|
// Host Relative URL
|
|
|
- if (/^https?:\/\//i.test(path) && /^\//.test(url)) {
|
|
|
- path = path.replace(/(^https?:\/\/[^\/]+).*/i, "$1");
|
|
|
+ if ( /^https?:\/\//i.test(path) && /^\//.test(url) ) {
|
|
|
+ path = path.replace( /(^https?:\/\/[^\/]+).*/i , '$1' );
|
|
|
}
|
|
|
|
|
|
// Absolute URL http://,https://,//
|