bug 1137792 - Ignore the first timing for an add-on r=mossop

This commit is contained in:
Brad Lassey 2015-03-09 12:33:00 +00:00
Родитель 0004bf584d
Коммит 9413de2f1c
1 изменённых файлов: 1 добавлений и 4 удалений

Просмотреть файл

@ -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];