diff options
author | 0neGal <mail@0negal.com> | 2023-01-30 23:36:06 +0100 |
---|---|---|
committer | 0neGal <mail@0negal.com> | 2023-01-30 23:36:54 +0100 |
commit | ce3204a4dbbf7579fdc3ab066f2cba596562896a (patch) | |
tree | 872df96136220241539cc6e85983100be3972e90 /src | |
parent | 84cc46018664cee9d89d71ea75ba687a9171ab28 (diff) | |
download | Viper-ce3204a4dbbf7579fdc3ab066f2cba596562896a.tar.gz Viper-ce3204a4dbbf7579fdc3ab066f2cba596562896a.zip |
disable modslist buttons properly
Diffstat (limited to 'src')
-rw-r--r-- | src/app/main.js | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/app/main.js b/src/app/main.js index 5ac07de..a9329fa 100644 --- a/src/app/main.js +++ b/src/app/main.js @@ -64,7 +64,7 @@ if (fs.existsSync("viper.json")) { // Show a toast message if no Internet connection has been detected. -if (!navigator.onLine) { +if (! navigator.onLine) { ipcRenderer.send("no-internet"); } @@ -107,6 +107,7 @@ function setButtons(state) { } } + disablearray(document.querySelectorAll("#modsdiv .el button")); disablearray(document.querySelectorAll(".playBtnContainer .playBtn")); disablearray(document.querySelectorAll("#nsMods .buttons.modbtns button")); disablearray(document.querySelectorAll("#browser #browserEntries .text button")); |