From 004d5db2c35a83e878e20c98d0118af6755ebbd4 Mon Sep 17 00:00:00 2001 From: Dan Stillman Date: Sun, 5 Jul 2020 18:15:13 -0400 Subject: [PATCH] fx-compat: Services.console.getMessageArray() returns an actual array --- chrome/content/zotero/xpcom/zotero.js | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/chrome/content/zotero/xpcom/zotero.js b/chrome/content/zotero/xpcom/zotero.js index 9edbc60220..5823a250e3 100644 --- a/chrome/content/zotero/xpcom/zotero.js +++ b/chrome/content/zotero/xpcom/zotero.js @@ -380,10 +380,8 @@ Services.scriptloader.loadSubScript("resource://zotero/polyfill.js"); // Get startup errors try { - var messages = {}; - Services.console.getMessageArray(messages, {}); - _startupErrors = Object.keys(messages.value).map(i => messages[i]) - .filter(msg => _shouldKeepError(msg)); + let messages = Services.console.getMessageArray(); + _startupErrors = messages.filter(msg => _shouldKeepError(msg)); } catch(e) { Zotero.logError(e); }