Skip to content

Commit

Permalink
update android_handlers.js script
Browse files Browse the repository at this point in the history
  • Loading branch information
noobpk committed Sep 14, 2023
1 parent 368857e commit ff8046e
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions android_handlers.js
Original file line number Diff line number Diff line change
Expand Up @@ -38,16 +38,16 @@ Java.perform(function () {
}).wait();

if (rcv_data === "FAILURE") {
var result = this.c(a);
var result = this.request_method(request);
}
else {
var result = this.c(rcv_data);
var result = this.request_method(rcv_data);
}
return result;
}

response_class.response_method.overload('java.lang.String').implementation = function (response) {
onsole.log(colors.green, "[Original Response Body]\n", colors.resetColor, JSON.stringify(response), '\n');
console.log(colors.green, "[Original Response Body]\n", colors.resetColor, JSON.stringify(response), '\n');
send({ from: '/http', payload: JSON.stringify(js), api_path: 'response' })

var rcv_data = "FAILURE";
Expand All @@ -62,10 +62,10 @@ Java.perform(function () {
}).wait();

if (rcv_data === "FAILURE") {
var result = this.c(a);
var result = this.response_method(response);
}
else {
var result = this.c(rcv_data);
var result = this.response_method(rcv_data);
}
return result;
}
Expand Down

0 comments on commit ff8046e

Please sign in to comment.