Преглед изворни кода

STLLoader: Using statusText instead of responseText on error. See #4913.

Mr.doob пре 11 година
родитељ
комит
c4a1defc89
1 измењених фајлова са 1 додато и 1 уклоњено
  1. 1 1
      examples/js/loaders/STLLoader.js

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

@@ -50,7 +50,7 @@ THREE.STLLoader.prototype.load = function ( url, callback ) {
 
 		} else {
 
-			scope.dispatchEvent( { type: 'error', message: 'Couldn\'t load URL [' + url + ']', response: event.target.responseText } );
+			scope.dispatchEvent( { type: 'error', message: 'Couldn\'t load URL [' + url + ']', response: event.target.statusText } );
 
 		}