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
|
||||
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);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue