Skip to content

Commit

Permalink
Merge pull request #247 from Jan200101/PR/fix-broken-mod-install
Browse files Browse the repository at this point in the history
fix: correct install callback for mods that aren't already installed
  • Loading branch information
0neGal authored Aug 4, 2024
2 parents 09b7d16 + 4e06f7e commit 0434b94
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions src/app/js/browser.js
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand All @@ -437,10 +439,6 @@ browser.mod_el = (properties) => {
installicon = "downloads";
installstr = lang("gui.browser.update");
}

installcallback = () => {
browser.install(properties);
}
}

let entry = document.createElement("div");
Expand Down

0 comments on commit 0434b94

Please sign in to comment.