Port Pale Moon commit a3044d3 - Exclude default theme from update checks.

Do this both for TychoAM and WebExAM
This commit is contained in:
NTD 2018-03-08 12:20:38 -05:00 committed by Roy Tam
commit 45c9880478
2 changed files with 7 additions and 4 deletions

View file

@ -765,8 +765,9 @@ this.AddonUpdateChecker = {
* @return UpdateParser so that the caller can use UpdateParser.cancel() to shut
* down in-progress update requests
*/
checkForUpdates: function AUC_checkForUpdates(aId, aUpdateKey, aUrl,
aObserver) {
return new UpdateParser(aId, aUpdateKey, aUrl, aObserver);
checkForUpdates: function AUC_checkForUpdates(aId, aUpdateKey, aUrl, aObserver) {
// Exclude default theme
if (aId != "{972ce4c6-7e08-4474-a285-3208198ce6fd}")
return new UpdateParser(aId, aUpdateKey, aUrl, aObserver);
}
};

View file

@ -929,6 +929,8 @@ this.AddonUpdateChecker = {
* down in-progress update requests
*/
checkForUpdates: function(aId, aUpdateKey, aUrl, aObserver) {
return new UpdateParser(aId, aUpdateKey, aUrl, aObserver);
// Exclude default theme
if (aId != "{972ce4c6-7e08-4474-a285-3208198ce6fd}")
return new UpdateParser(aId, aUpdateKey, aUrl, aObserver);
}
};