aboutsummaryrefslogtreecommitdiff
path: root/src/app/js
diff options
context:
space:
mode:
authorJan200101 <sentrycraft123@gmail.com>2024-08-04 17:29:43 +0200
committerJan200101 <sentrycraft123@gmail.com>2024-08-04 17:29:43 +0200
commit4e06f7eb0bc404d5f8f82e62cf41a6cd575958ff (patch)
tree122508bbfce3516db3f0596915666df111992684 /src/app/js
parent09b7d16086595b1ba039ecf1c1b904a6e0948d12 (diff)
downloadViper-4e06f7eb0bc404d5f8f82e62cf41a6cd575958ff.tar.gz
Viper-4e06f7eb0bc404d5f8f82e62cf41a6cd575958ff.zip
fix: correct install callback for mods that aren't already installed
Diffstat (limited to 'src/app/js')
-rw-r--r--src/app/js/browser.js8
1 files changed, 3 insertions, 5 deletions
diff --git a/src/app/js/browser.js b/src/app/js/browser.js
index 3415ebf..bd9506f 100644
--- a/src/app/js/browser.js
+++ b/src/app/js/browser.js
@@ -414,8 +414,10 @@ browser.mod_el = (properties) => {
let installicon = "downloads";
let installstr = lang("gui.browser.install");
- let installcallback = () => {};
let normalized_title = mods.normalize(properties.title)
+ let installcallback = () => {
+ browser.install(properties);
+ }
let nondefault_install = {
"vanillaplus": "https://github.com/Zayveeo5e/NP.VanillaPlus/blob/main/README.md"
@@ -437,10 +439,6 @@ browser.mod_el = (properties) => {
installicon = "downloads";
installstr = lang("gui.browser.update");
}
-
- installcallback = () => {
- browser.install(properties);
- }
}
let entry = document.createElement("div");