Skip to content

Commit

Permalink
fix: correct install callback for mods that aren't already installed
Browse files Browse the repository at this point in the history
  • Loading branch information
Jan200101 committed Aug 4, 2024
1 parent 09b7d16 commit 4e06f7e
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 4e06f7e

Please sign in to comment.