From a6f253b46a2c014b985ef0210a4467cb05925ab5 Mon Sep 17 00:00:00 2001 From: Simon Kornblith Date: Tue, 14 Feb 2012 00:40:17 -0500 Subject: [PATCH] Knock off beginning rather than end of errors --- chrome/content/zotero/xpcom/zotero.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/chrome/content/zotero/xpcom/zotero.js b/chrome/content/zotero/xpcom/zotero.js index 9d112f471..89cd65a9e 100644 --- a/chrome/content/zotero/xpcom/zotero.js +++ b/chrome/content/zotero/xpcom/zotero.js @@ -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); } };