Skip to content

Commit

Permalink
Reject results
Browse files Browse the repository at this point in the history
  • Loading branch information
oeway committed Apr 8, 2024
1 parent c7a5bf5 commit aa5d5cf
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions src/main/java/ij/IJ.java
Original file line number Diff line number Diff line change
Expand Up @@ -165,11 +165,14 @@ public static String runMacro(final String macro, final String arg) {
try {
new Thread(new Runnable() {
public void run() {
Macro_Runner mr = new Macro_Runner();
Macro_Runner mr = new Macro_Runner(true);
try{
String macroResult = mr.runMacro(macro, arg);
try{
Global.jsCall("onMacroResolve", macroResult);
if(macroResult!=null)
Global.jsCall("onMacroReject", macroResult);
else
Global.jsCall("onMacroResolve", null);
}
finally{
}
Expand Down

0 comments on commit aa5d5cf

Please sign in to comment.