Blacklist a few non-Zotero errors in getErrors()
This commit is contained in:
parent
4ea8d724f7
commit
81b4ce0069
|
@ -436,6 +436,7 @@ var Zotero = new function(){
|
|||
|
||||
var skip = ['CSS Parser', 'content javascript'];
|
||||
|
||||
msgblock:
|
||||
for each(var msg in messages.value) {
|
||||
//Zotero.debug(msg);
|
||||
try {
|
||||
|
@ -447,6 +448,19 @@ var Zotero = new function(){
|
|||
}
|
||||
catch (e) { }
|
||||
|
||||
var blacklist = [
|
||||
"No chrome package registered for chrome://communicator",
|
||||
'[JavaScript Error: "Components is not defined" {file: "chrome://nightly/content/talkback/talkback.js',
|
||||
'[JavaScript Error: "document.getElementById("sanitizeItem")'
|
||||
];
|
||||
|
||||
for (var i=0; i<blacklist.length; i++) {
|
||||
if (msg.message.indexOf(blacklist[i]) != -1) {
|
||||
Zotero.debug("Skipping blacklisted error: " + msg.message);
|
||||
continue msgblock;
|
||||
}
|
||||
}
|
||||
|
||||
if (asStrings) {
|
||||
errors.push(msg.message)
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user