fx-compat: Services.console.getMessageArray() returns an actual array

This commit is contained in:
Dan Stillman 2020-07-05 18:15:13 -04:00
parent fb8984c947
commit 004d5db2c3

View file

@ -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);
}