add one function and change private to public

This commit is contained in:
lizhi 2021-12-17 16:58:32 +08:00
parent 786efa8279
commit 2f38b8743a

View File

@ -228,6 +228,7 @@ public class DesktopEngine extends JSEngine {
public Object invokeFunction(String functionName, Object... args) {
Invocable cal = engine;
try {
return cal.invokeFunction(functionName, args);
} catch (ScriptException e) {
@ -235,6 +236,7 @@ public class DesktopEngine extends JSEngine {
} catch (NoSuchMethodException e) {
e.printStackTrace();
}
return null;
}