diff options
author | Rémi Verschelde <rverschelde@gmail.com> | 2019-02-24 19:44:54 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-02-24 19:44:54 +0100 |
commit | 69c0d32b93fc8ec3a3f6c08de2b3c518e38d8a56 (patch) | |
tree | 06140c4fa64a6b39fbaf381c5c79543494958232 /platform/javascript/http_request.js | |
parent | 61b41d6001492527753b7047989d38ffd085a9de (diff) | |
parent | 76522624cb48675df2e632dbf2ef35f39d0a611c (diff) |
Merge pull request #26240 from eska014/html5-preload-noown
Properly preload files, always use stdout/-err in HTML5 platform
Diffstat (limited to 'platform/javascript/http_request.js')
-rw-r--r-- | platform/javascript/http_request.js | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/platform/javascript/http_request.js b/platform/javascript/http_request.js index 7acd32d8bf..66dacfc3d4 100644 --- a/platform/javascript/http_request.js +++ b/platform/javascript/http_request.js @@ -82,7 +82,7 @@ var GodotHTTPRequest = { godot_xhr_send_string: function(xhrId, strPtr) { if (!strPtr) { - console.warn("Failed to send string per XHR: null pointer"); + err("Failed to send string per XHR: null pointer"); return; } GodotHTTPRequest.requests[xhrId].send(UTF8ToString(strPtr)); @@ -90,11 +90,11 @@ var GodotHTTPRequest = { godot_xhr_send_data: function(xhrId, ptr, len) { if (!ptr) { - console.warn("Failed to send data per XHR: null pointer"); + err("Failed to send data per XHR: null pointer"); return; } if (len < 0) { - console.warn("Failed to send data per XHR: buffer length less than 0"); + err("Failed to send data per XHR: buffer length less than 0"); return; } GodotHTTPRequest.requests[xhrId].send(HEAPU8.subarray(ptr, ptr + len)); |