filter out DealPly error

This commit is contained in:
nightwing 2015-03-18 22:46:43 +04:00
parent 06089a8e7c
commit fdcbb19adf

View File

@ -1419,7 +1419,8 @@ window.TraceKit = TraceKit;
var blackListedErrors = {
'Error with empty message': {},
'Script error.': {}
'Script error.': {},
'DealPly is not defined': { factor: 10e5 }
};
function processUnhandledException(stackTrace, options) {
var stack = [],
@ -1479,7 +1480,7 @@ window.TraceKit = TraceKit;
if (blackListedErrors.hasOwnProperty(message)) {
var count = (blackListedErrors[message].count || 0) + 1;
blackListedErrors[message].count = count;
if (count % 10 !== 1) {
if (count % (blackListedErrors[message].factor || 10) !== 1) {
return;
}
finalCustomData.$blackList = blackListedErrors[message];