aboutsummaryrefslogtreecommitdiff
path: root/src/app/js/browser.js
diff options
context:
space:
mode:
Diffstat (limited to 'src/app/js/browser.js')
-rw-r--r--src/app/js/browser.js18
1 files changed, 10 insertions, 8 deletions
diff --git a/src/app/js/browser.js b/src/app/js/browser.js
index c6c74c9..206b80e 100644
--- a/src/app/js/browser.js
+++ b/src/app/js/browser.js
@@ -129,14 +129,16 @@ var Browser = {
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;
+ if (modsobj) {
+ 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;
+ }
}
}
}