Skip to content

Commit

Permalink
fixes #�2471 xhr open order
Browse files Browse the repository at this point in the history
  • Loading branch information
bodymovin committed Mar 21, 2021
1 parent b4588b2 commit 4f93b6b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion player/js/utils/asset_loader.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@ var assetLoader = (function () {
function loadAsset(path, callback, errorCallback) {
var response;
var xhr = new XMLHttpRequest();
xhr.open('GET', path, true);
// set responseType after calling open or IE will break.
try {
// This crashes on Android WebView prior to KitKat
Expand All @@ -38,6 +37,7 @@ var assetLoader = (function () {
}
}
};
xhr.open('GET', path, true);
xhr.send();
}
return {
Expand Down

0 comments on commit 4f93b6b

Please sign in to comment.