aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
author0neGal <mail@0negal.com>2024-08-04 19:26:12 +0200
committerGitHub <noreply@github.com>2024-08-04 19:26:12 +0200
commit0434b949bc208676c3833cb5910b2d76ac95f333 (patch)
tree122508bbfce3516db3f0596915666df111992684 /src
parent09b7d16086595b1ba039ecf1c1b904a6e0948d12 (diff)
parent4e06f7eb0bc404d5f8f82e62cf41a6cd575958ff (diff)
downloadViper-0434b949bc208676c3833cb5910b2d76ac95f333.tar.gz
Viper-0434b949bc208676c3833cb5910b2d76ac95f333.zip
Merge pull request #247 from Jan200101/PR/fix-broken-mod-install
fix: correct install callback for mods that aren't already installed
Diffstat (limited to 'src')
-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");