mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-14 05:45:37 +00:00
bug 1137792 - Ignore the first timing for an add-on r=mossop
This commit is contained in:
parent
0004bf584d
commit
9413de2f1c
@ -68,10 +68,7 @@ let AddonWatcher = {
|
||||
let limit = this._interval * Preferences.get("browser.addon-watch.percentage-limit", 75) * 10;
|
||||
for (let addonId in addons) {
|
||||
if (!this._ignoreList.has(addonId)) {
|
||||
if (!this._lastAddonTime[addonId]) {
|
||||
this._lastAddonTime[addonId] = 0;
|
||||
}
|
||||
if ((addons[addonId] - this._lastAddonTime[addonId]) > limit) {
|
||||
if (this._lastAddonTime[addonId] && ((addons[addonId] - this._lastAddonTime[addonId]) > limit)) {
|
||||
this._callback(addonId);
|
||||
}
|
||||
this._lastAddonTime[addonId] = addons[addonId];
|
||||
|
Loading…
Reference in New Issue
Block a user