We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2290c08 commit 1eb547aCopy full SHA for 1eb547a
libs/backendless.js
@@ -3443,7 +3443,9 @@
3443
return result;
3444
};
3445
3446
- xhr.open("PUT", this.uploadPath, true);
+ var asyncHandler = this.asyncHandler;
3447
+
3448
+ xhr.open("PUT", this.uploadPath, !!asyncHandler);
3449
xhr.setRequestHeader('Content-Type', 'text/plain');
3450
xhr.setRequestHeader('application-id', Backendless.applicationId);
3451
xhr.setRequestHeader("secret-key", Backendless.secretKey);
@@ -3453,8 +3455,6 @@
3453
3455
xhr.setRequestHeader("uiState", UIState);
3454
3456
}
3457
- var asyncHandler = this.asyncHandler;
-
3458
if (asyncHandler) {
3459
xhr.onreadystatechange = function() {
3460
if (xhr.readyState == 4) {
0 commit comments