From ff8046e16713c4e7636b17187e182d04b27297b9 Mon Sep 17 00:00:00 2001 From: noobpk <> Date: Thu, 14 Sep 2023 11:25:33 +0700 Subject: [PATCH] update android_handlers.js script --- android_handlers.js | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/android_handlers.js b/android_handlers.js index e3b9bd4..b83cf4e 100644 --- a/android_handlers.js +++ b/android_handlers.js @@ -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"; @@ -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; }