зеркало из https://github.com/mozilla/gecko-dev.git
bug 1137792 - Ignore the first timing for an add-on r=mossop
This commit is contained in:
Родитель
0004bf584d
Коммит
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];
|
||||
|
|
Загрузка…
Ссылка в новой задаче