Support for the latest react-native-http-bridge

This commit is contained in:
alwx 2017-05-22 14:27:34 +03:00
parent 800adf3e30
commit 11fca6bd68
2 changed files with 4 additions and 2 deletions

3
cli.js
View File

@ -185,6 +185,8 @@ cli.command("list")
printMan();
} else if (body === undefined) {
printServerProblem();
} else if (body.data === undefined) {
console.log(chalk.red("No DApps or bots."));
} else {
body.data.forEach(function(item, i, arr) {
if (item["dapp-url"]) {
@ -281,4 +283,3 @@ cli.version(pkgJson.version)
.option("--ip [ip]", "IP address of your device")
.option("--dapp-port [dappPort]", "Port of your local DApp server")
.parse(process.argv);

View File

@ -66,7 +66,8 @@ StatusDev.prototype.listDApps = function(cb) {
request({
url: this.url + "/list",
json: true,
method: "POST"
method: "POST",
body: {}
}, function (error, response, body) {
if (cb === undefined) { return }
cb(error, body);