Skip to content

Commit

Permalink
Never offer to install add-ons in SeaMonkey
Browse files Browse the repository at this point in the history
  • Loading branch information
JustOff committed Oct 6, 2018
1 parent 8b2849d commit 0d6e08b
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 12 deletions.
6 changes: 2 additions & 4 deletions content/addon.js
Expand Up @@ -92,12 +92,10 @@ let Addon = {
let appver;
if (Services.appinfo.name == "Pale Moon") {
appver = "27.9";
} else if (Services.appinfo.name == "SeaMonkey") {
appver = "52.0";
} else {
} else if (Services.appinfo.name != "SeaMonkey") {
appver = Services.appinfo.version;
}
if (Services.vc.compare(dbQuery.row.min, appver) <= 0 && Services.vc.compare(appver, dbQuery.row.max) <= 0) {
if (appver && Services.vc.compare(dbQuery.row.min, appver) <= 0 && Services.vc.compare(appver, dbQuery.row.max) <= 0) {
data.compat = "add";
data.action = "Install Now";
data.downurl = "https://addons.mozilla.org/firefox/downloads/file/" + dbQuery.row.url;
Expand Down
6 changes: 2 additions & 4 deletions content/list.js
Expand Up @@ -172,12 +172,10 @@ let List = {
let appver;
if (Services.appinfo.name == "Pale Moon") {
appver = "27.9";
} else if (Services.appinfo.name == "SeaMonkey") {
appver = "52.0";
} else {
} else if (Services.appinfo.name != "SeaMonkey") {
appver = Services.appinfo.version;
}
if (Services.vc.compare(dbQuery.row.min, appver) <= 0 && Services.vc.compare(appver, dbQuery.row.max) <= 0) {
if (appver && Services.vc.compare(dbQuery.row.min, appver) <= 0 && Services.vc.compare(appver, dbQuery.row.max) <= 0) {
item = item.replace("%COMPAT%", "add");
item = item.replace("%ACTION%", "Install Now");
item = item.replace("%DOWNURL%", "https://addons.mozilla.org/firefox/downloads/file/" + dbQuery.row.url);
Expand Down
6 changes: 2 additions & 4 deletions content/versions.js
Expand Up @@ -110,12 +110,10 @@ let Versions = {
let appver;
if (Services.appinfo.name == "Pale Moon") {
appver = "27.9";
} else if (Services.appinfo.name == "SeaMonkey") {
appver = "52.0";
} else {
} else if (Services.appinfo.name != "SeaMonkey") {
appver = Services.appinfo.version;
}
if (Services.vc.compare(dbQuery.row.min, appver) <= 0 && Services.vc.compare(appver, dbQuery.row.max) <= 0) {
if (appver && Services.vc.compare(dbQuery.row.min, appver) <= 0 && Services.vc.compare(appver, dbQuery.row.max) <= 0) {
item = item.replace("%COMPAT%", "add");
item = item.replace("%ACTION%", "Install Now");
item = item.replace("%DOWNURL%", "https://addons.mozilla.org/firefox/downloads/file/" + dbQuery.row.url);
Expand Down

1 comment on commit 0d6e08b

@JustOff
Copy link
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Tag #14.

Please sign in to comment.