mirror of
https://repo.dactyloidae.xyz/Dactyloidae/UXP.git
synced 2026-09-04 23:08:39 +09:00
[*AM] Expand the list for excluding internally used IDs from being sent to AUS
This commit is contained in:
parent
cde07843c0
commit
89f2084eef
2 changed files with 22 additions and 4 deletions
|
|
@ -766,8 +766,17 @@ this.AddonUpdateChecker = {
|
|||
* down in-progress update requests
|
||||
*/
|
||||
checkForUpdates: function AUC_checkForUpdates(aId, aUpdateKey, aUrl, aObserver) {
|
||||
// Exclude default theme
|
||||
if (aId != "{972ce4c6-7e08-4474-a285-3208198ce6fd}")
|
||||
// Define an array of internally used IDs to NOT send to AUS such as the
|
||||
// Default Theme. Please keep this list in sync with:
|
||||
// toolkit/mozapps/webextensions/AddonUpdateChecker.jsm
|
||||
let internalIDS = [
|
||||
'{972ce4c6-7e08-4474-a285-3208198ce6fd}',
|
||||
'modern@themes.mozilla.org'
|
||||
];
|
||||
|
||||
// If the ID is not in the array then go ahead and query AUS
|
||||
if (internalIDS.indexOf(aId) == -1) {
|
||||
return new UpdateParser(aId, aUpdateKey, aUrl, aObserver);
|
||||
}
|
||||
}
|
||||
};
|
||||
|
|
|
|||
|
|
@ -929,8 +929,17 @@ this.AddonUpdateChecker = {
|
|||
* down in-progress update requests
|
||||
*/
|
||||
checkForUpdates: function(aId, aUpdateKey, aUrl, aObserver) {
|
||||
// Exclude default theme
|
||||
if (aId != "{972ce4c6-7e08-4474-a285-3208198ce6fd}")
|
||||
// Define an array of internally used IDs to NOT send to AUS such as the
|
||||
// Default Theme. Please keep this list in sync with:
|
||||
// toolkit/mozapps/extensions/AddonUpdateChecker.jsm
|
||||
let internalIDS = [
|
||||
'{972ce4c6-7e08-4474-a285-3208198ce6fd}',
|
||||
'modern@themes.mozilla.org'
|
||||
];
|
||||
|
||||
// If the ID is not in the array then go ahead and query AUS
|
||||
if (internalIDS.indexOf(aId) == -1) {
|
||||
return new UpdateParser(aId, aUpdateKey, aUrl, aObserver);
|
||||
}
|
||||
}
|
||||
};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue