aboutsummaryrefslogtreecommitdiff
path: root/src/app
diff options
context:
space:
mode:
Diffstat (limited to 'src/app')
-rw-r--r--src/app/browser.js19
1 files changed, 19 insertions, 0 deletions
diff --git a/src/app/browser.js b/src/app/browser.js
index 7b67822..c266b41 100644
--- a/src/app/browser.js
+++ b/src/app/browser.js
@@ -77,10 +77,15 @@ var Browser = {
setTimeout(() => {
for (let i = 0; i < modsobj.all.length; i++) {
let modname = normalize(modsobj.all[i].Name);
+ let modfolder = normalize(modsobj.all[i].FolderName);
if (mod.includes(modname)) {
if (document.getElementById(modname)) {
Browser.setbutton(modname, string);
}
+ } else if (mod.includes(modfolder)) {
+ if (document.getElementById(modfolder)) {
+ Browser.setbutton(modfolder, string);
+ }
}
}
}, 1501)
@@ -137,6 +142,20 @@ function BrowserEl(properties) {
installstr = lang("gui.browser.update");
}
}
+ } else {
+ for (let i = 0; i < modsobj.all.length; i++) {
+ let title = normalize(properties.title);
+ let folder = normalize(modsobj.all[i].FolderName);
+ if (title.includes(folder)) {
+ installstr = lang("gui.browser.reinstall");
+
+ if (folder == title
+ && "v" + modsobj.all[i].Version != properties.version) {
+
+ installstr = lang("gui.browser.update");
+ }
+ }
+ }
}
browserEntries.innerHTML += `