Knock off beginning rather than end of errors

This commit is contained in:
Simon Kornblith 2012-02-14 00:40:17 -05:00
parent 2903fd27ef
commit a6f253b46a

View file

@ -1908,7 +1908,7 @@ const ZOTERO_CONFIG = {
Components.interfaces.nsISupports]),
"observe":function(msg) {
if(!_shouldKeepError(msg)) return;
if(_recentErrors.length === ERROR_BUFFER_SIZE) _recentErrors.pop();
if(_recentErrors.length === ERROR_BUFFER_SIZE) _recentErrors.shift();
_recentErrors.push(msg);
}
};