mirror of
https://github.com/status-im/realm-js.git
synced 2025-01-12 07:14:23 +00:00
Merge pull request #855 from mongris/master
Fixed crash issue with VSCode debugging
This commit is contained in:
commit
53f245b65c
@ -179,7 +179,12 @@ function makeRequest(url, data) {
|
|||||||
// The global __debug__ object is provided by Visual Studio Code.
|
// The global __debug__ object is provided by Visual Studio Code.
|
||||||
if (global.__debug__) {
|
if (global.__debug__) {
|
||||||
let request = global.__debug__.require('sync-request');
|
let request = global.__debug__.require('sync-request');
|
||||||
let response = request('POST', url, {json: data});
|
let response = request('POST', url, {
|
||||||
|
body: JSON.stringify(data),
|
||||||
|
headers: {
|
||||||
|
"Content-Type": "text/plain;charset=UTF-8"
|
||||||
|
}
|
||||||
|
});
|
||||||
|
|
||||||
statusCode = response.statusCode;
|
statusCode = response.statusCode;
|
||||||
responseText = response.body.toString('utf-8');
|
responseText = response.body.toString('utf-8');
|
||||||
|
Loading…
x
Reference in New Issue
Block a user