diff options
author | GitExample <git@example.com> | 2022-02-03 01:09:37 +0100 |
---|---|---|
committer | GitExample <git@example.com> | 2022-02-03 01:09:37 +0100 |
commit | d3228ae7fad117a8313731107f572ba4879569b6 (patch) | |
tree | ce67a33514eccb055580f15d3b7162c5261efed3 /src/app/main.js | |
parent | 396c1f3c9499a2bb50b2b5f3760cc58acfe9b87f (diff) | |
download | Viper-d3228ae7fad117a8313731107f572ba4879569b6.tar.gz Viper-d3228ae7fad117a8313731107f572ba4879569b6.zip |
ability to download from browser
This should work for all mods, assuming that all mods come packages the
same, aka, in a Zip, with mods/<mod> in it. Which from what I know they
do.
Diffstat (limited to 'src/app/main.js')
-rw-r--r-- | src/app/main.js | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/app/main.js b/src/app/main.js index 5f0cc9a..b61b20a 100644 --- a/src/app/main.js +++ b/src/app/main.js @@ -153,6 +153,11 @@ function installmod() { ipcRenderer.send("installmod") } +// Tells the main process to install a mod from a URL +function installFromURL(url) { + ipcRenderer.send("installfromurl", url) +} + // Frontend part of settings a new game path ipcRenderer.on("newpath", (event, newpath) => { settings.gamepath = newpath; |