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