aboutsummaryrefslogtreecommitdiff
path: root/src/app/js/browser.js
diff options
context:
space:
mode:
author0neGal <mail@0negal.com>2023-03-05 22:54:35 +0100
committer0neGal <mail@0negal.com>2023-03-05 22:54:35 +0100
commite666a607a66b560036c853b3a163aedc1b5ab638 (patch)
treeda3e04d952ee1361f88df8f2b0f060912b96e657 /src/app/js/browser.js
parent7ef891c54e0e9b06efc09e0d5e328d900a31e958 (diff)
downloadViper-e666a607a66b560036c853b3a163aedc1b5ab638.tar.gz
Viper-e666a607a66b560036c853b3a163aedc1b5ab638.zip
fixed not being able to toggle mods with updates
Diffstat (limited to 'src/app/js/browser.js')
-rw-r--r--src/app/js/browser.js4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/app/js/browser.js b/src/app/js/browser.js
index c35d31a..c6c74c9 100644
--- a/src/app/js/browser.js
+++ b/src/app/js/browser.js
@@ -124,13 +124,16 @@ var Browser = {
let normalized = normalize(packages[i].name);
let has_update = false;
+ let local_name = false;
let local_version = false;
let remote_version = packages[i].versions[0].version_number;
remote_version = version.format(remote_version);
for (let ii = 0; ii < modsobj.all.length; ii++) {
let mod = modsobj.all[ii];
+
if (normalize(mod.Name) === normalized) {
+ local_name = mod.Name;
local_version = version.format(mod.Version);
if (version.is_newer(remote_version, local_version)) {
has_update = true;
@@ -150,6 +153,7 @@ var Browser = {
mod_versions[normalized] = {
install: install,
has_update: has_update,
+ local_name: local_name,
local_version: local_version,
package: packages[i]