Skip to content

Commit b7ad79e

Browse files
committed
Change variable name
1 parent 8f74211 commit b7ad79e

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

Diff for: app/src/main/java/io/github/chipppppppppp/lime/hooks/ModifyRequest.java

+2-2
Original file line numberDiff line numberDiff line change
@@ -26,8 +26,8 @@ protected void beforeHookedMethod(MethodHookParam param) throws Throwable {
2626
ctx.setOptimizationLevel(-1);
2727
try {
2828
Scriptable scope = ctx.initStandardObjects();
29-
Object jsCommunication = Context.javaToJS(new Communication(Communication.Type.REQUEST, param.args[0].toString(), param.args[1]), scope);
30-
ScriptableObject.putProperty(scope, "communication", jsCommunication);
29+
Object jsData = Context.javaToJS(new Communication(Communication.Type.REQUEST, param.args[0].toString(), param.args[1]), scope);
30+
ScriptableObject.putProperty(scope, "data", jsData);
3131
ScriptableObject.putProperty(scope, "console", Context.javaToJS(new Console(), scope));
3232
ctx.evaluateString(scope, script, "Script", 1, null);
3333
} catch (Exception e) {

Diff for: app/src/main/java/io/github/chipppppppppp/lime/hooks/ModifyResponse.java

+2-2
Original file line numberDiff line numberDiff line change
@@ -26,8 +26,8 @@ protected void afterHookedMethod(MethodHookParam param) throws Throwable {
2626
ctx.setOptimizationLevel(-1);
2727
try {
2828
Scriptable scope = ctx.initStandardObjects();
29-
Object jsCommunication = Context.javaToJS(new Communication(Communication.Type.RESPONSE, param.args[0].toString(), param.args[1]), scope);
30-
ScriptableObject.putProperty(scope, "communication", jsCommunication);
29+
Object jsData = Context.javaToJS(new Communication(Communication.Type.RESPONSE, param.args[0].toString(), param.args[1]), scope);
30+
ScriptableObject.putProperty(scope, "data", jsData);
3131
ScriptableObject.putProperty(scope, "console", Context.javaToJS(new Console(), scope));
3232
ctx.evaluateString(scope, script, "Script", 1, null);
3333
} catch (Exception e) {

0 commit comments

Comments
 (0)