diff options
author | 0neGal <mail@0negal.com> | 2024-06-08 18:36:27 +0200 |
---|---|---|
committer | 0neGal <mail@0negal.com> | 2024-06-08 18:36:27 +0200 |
commit | 0577977182e7f4be2722f54ae50ff23aa8fe9032 (patch) | |
tree | 11613eceff4fc919d28df2c7d372ca0affad2469 /src/app/js/gamepath.js | |
parent | ceb90ab941a159d63ea5cace1c24dde6b8b96a86 (diff) | |
download | Viper-0577977182e7f4be2722f54ae50ff23aa8fe9032.tar.gz Viper-0577977182e7f4be2722f54ae50ff23aa8fe9032.zip |
convert js/launcher.js to a CommonJS module
Diffstat (limited to 'src/app/js/gamepath.js')
-rw-r--r-- | src/app/js/gamepath.js | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/app/js/gamepath.js b/src/app/js/gamepath.js index 80e3158..c3e5c2b 100644 --- a/src/app/js/gamepath.js +++ b/src/app/js/gamepath.js @@ -2,6 +2,7 @@ const ipcRenderer = require("electron").ipcRenderer; const lang = require("../../lang"); const process = require("./process"); +const launcher = require("./launcher"); const settings = require("./settings"); // frontend part of settings a new game path @@ -16,7 +17,7 @@ ipcRenderer.on("newpath", (_, newpath) => { // a previously valid gamepath no longer exists, and is therefore lost ipcRenderer.on("gamepath-lost", () => { - page(0); + launcher.change_page(0); set_buttons(false, true); alert(lang("gui.gamepath.lost")); }) |