Sfoglia il codice sorgente

Forgot applying it to BinaryLoader too.

Mr.doob 13 anni fa
parent
commit
8476b81c30
1 ha cambiato i file con 1 aggiunte e 1 eliminazioni
  1. 1 1
      src/extras/loaders/BinaryLoader.js

+ 1 - 1
src/extras/loaders/BinaryLoader.js

@@ -92,7 +92,7 @@ THREE.BinaryLoader.prototype.loadAjaxJSON = function( context, url, callback, te
 	};
 
 	xhr.open( "GET", url, true );
-	xhr.overrideMimeType( "text/plain; charset=x-user-defined" );
+	if ( xhr.overrideMimeType ) xhr.overrideMimeType( "text/plain; charset=x-user-defined" );
 	xhr.setRequestHeader( "Content-Type", "text/plain" );
 	xhr.send( null );