Skip to content

Commit

Permalink
fix: fix uiapp name
Browse files Browse the repository at this point in the history
  • Loading branch information
NSEcho committed Sep 15, 2023
1 parent 6fd88e7 commit 9ab665f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions script/script.js
Original file line number Diff line number Diff line change
Expand Up @@ -31,9 +31,9 @@ rpc.exports = {
delegate = ObjC.Object(ObjC.chooseSync(AppDelegate)[0]);
}
if (appName != "") {
app = ObjC.Object(ObjC.chooseSync(UIApplication)[0]);
} else {
app = ObjC.Object(ObjC.chooseSync(ObjC.classes[appName])[0]);
} else {
app = ObjC.Object(ObjC.chooseSync(UIApplication)[0]);
}
}
break;
Expand Down

0 comments on commit 9ab665f

Please sign in to comment.