mirror of
https://github.com/status-im/realm-js.git
synced 2025-01-09 05:52:24 +00:00
remove debug code
This commit is contained in:
parent
c3ac7ac81d
commit
3e65994474
@ -229,7 +229,7 @@ function deserialize_json_value(value) {
|
|||||||
|
|
||||||
return result;
|
return result;
|
||||||
}
|
}
|
||||||
let commandCounter = 0;
|
|
||||||
function sendRequest(command, data, host = sessionHost) {
|
function sendRequest(command, data, host = sessionHost) {
|
||||||
clearTimeout(pollTimeoutId);
|
clearTimeout(pollTimeoutId);
|
||||||
try {
|
try {
|
||||||
@ -241,9 +241,7 @@ function sendRequest(command, data, host = sessionHost) {
|
|||||||
|
|
||||||
commandCounter++;
|
commandCounter++;
|
||||||
let url = 'http://' + host + '/' + command;
|
let url = 'http://' + host + '/' + command;
|
||||||
console.log(`\n command ${commandCounter} ${command} data ${JSON.stringify(data)}`);
|
|
||||||
let response = makeRequest(url, data);
|
let response = makeRequest(url, data);
|
||||||
console.log(`\n command ${commandCounter} response ${JSON.stringify(response)}`);
|
|
||||||
|
|
||||||
if (!response || response.error) {
|
if (!response || response.error) {
|
||||||
let error = response && response.error;
|
let error = response && response.error;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user