Knock off beginning rather than end of errors
This commit is contained in:
parent
2903fd27ef
commit
a6f253b46a
1 changed files with 1 additions and 1 deletions
|
@ -1908,7 +1908,7 @@ const ZOTERO_CONFIG = {
|
||||||
Components.interfaces.nsISupports]),
|
Components.interfaces.nsISupports]),
|
||||||
"observe":function(msg) {
|
"observe":function(msg) {
|
||||||
if(!_shouldKeepError(msg)) return;
|
if(!_shouldKeepError(msg)) return;
|
||||||
if(_recentErrors.length === ERROR_BUFFER_SIZE) _recentErrors.pop();
|
if(_recentErrors.length === ERROR_BUFFER_SIZE) _recentErrors.shift();
|
||||||
_recentErrors.push(msg);
|
_recentErrors.push(msg);
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
Loading…
Add table
Reference in a new issue