mirror of
https://github.com/Tonejs/Tone.js
synced 2024-11-16 16:48:00 +00:00
Revert "Encode URL when loading buffer (#318)"
This reverts commit e6db1daed8
.
This commit is contained in:
parent
e6db1daed8
commit
2841fefe40
1 changed files with 1 additions and 12 deletions
|
@ -466,18 +466,7 @@ define(["Tone/core/Tone", "Tone/core/Emitter", "Tone/type/Type", "Tone/shim/Audi
|
|||
}
|
||||
|
||||
var request = new XMLHttpRequest();
|
||||
|
||||
// encode the url, separating by slash
|
||||
var urlSplit = (Tone.Buffer.baseUrl + url).split("/");
|
||||
var encodedUrl = "";
|
||||
for (var urlSplitIdx = 0; urlSplitIdx < urlSplit.length; urlSplitIdx++){
|
||||
if (urlSplitIdx > 0){
|
||||
encodedUrl += "/";
|
||||
}
|
||||
encodedUrl += encodeURIComponent(urlSplit[urlSplitIdx]);
|
||||
}
|
||||
|
||||
request.open("GET", encodedUrl, true);
|
||||
request.open("GET", Tone.Buffer.baseUrl + url, true);
|
||||
request.responseType = "arraybuffer";
|
||||
//start out as 0
|
||||
request.progress = 0;
|
||||
|
|
Loading…
Reference in a new issue