fx-compat: Services.console.getMessageArray() returns an actual array
This commit is contained in:
parent
fb8984c947
commit
004d5db2c3
1 changed files with 2 additions and 4 deletions
|
@ -380,10 +380,8 @@ Services.scriptloader.loadSubScript("resource://zotero/polyfill.js");
|
||||||
|
|
||||||
// Get startup errors
|
// Get startup errors
|
||||||
try {
|
try {
|
||||||
var messages = {};
|
let messages = Services.console.getMessageArray();
|
||||||
Services.console.getMessageArray(messages, {});
|
_startupErrors = messages.filter(msg => _shouldKeepError(msg));
|
||||||
_startupErrors = Object.keys(messages.value).map(i => messages[i])
|
|
||||||
.filter(msg => _shouldKeepError(msg));
|
|
||||||
} catch(e) {
|
} catch(e) {
|
||||||
Zotero.logError(e);
|
Zotero.logError(e);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue