mirror of
https://github.com/zotero/zotero.git
synced 2026-10-09 03:18:01 +00:00
Blacklist a few non-Zotero errors in getErrors()
This commit is contained in:
parent
4ea8d724f7
commit
81b4ce0069
1 changed files with 14 additions and 0 deletions
|
|
@ -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…
Add table
Reference in a new issue