diff --git a/Launcher/runtime/init.js b/Launcher/runtime/init.js index 4a0561c6..a08a4e4a 100644 --- a/Launcher/runtime/init.js +++ b/Launcher/runtime/init.js @@ -57,3 +57,5 @@ function start(args) { LogHelper.debug("Launching JavaFX application"); javafx.application.Application.launch(LauncherApp.class, args); } + +launcher.loadScript("dialog/dialog.js"); \ No newline at end of file diff --git a/Launcher/src/main/java/ru/gravit/launcher/LauncherEngine.java b/Launcher/src/main/java/ru/gravit/launcher/LauncherEngine.java index e7cbf351..5d0ff57e 100644 --- a/Launcher/src/main/java/ru/gravit/launcher/LauncherEngine.java +++ b/Launcher/src/main/java/ru/gravit/launcher/LauncherEngine.java @@ -203,9 +203,8 @@ public void start(String... args) throws Throwable { Launcher.modulesManager.initModules(); // Load init.js script loadScript(Launcher.API_SCRIPT_FILE); - loadScript(Launcher.INIT_SCRIPT_FILE); loadScript(Launcher.CONFIG_SCRIPT_FILE); - loadScript("dialog/dialog.js"); + loadScript(Launcher.INIT_SCRIPT_FILE); LogHelper.info("Invoking start() function"); Invocable invoker = (Invocable) engine; if (Launcher.isUsingAvanguard()) {