errbit/errbit — pull request #689 by oelmekki (2014-04-23 10:07:07+00:00)
Title: ADD allow js client to add filters

A new `Airbrake.addFilter( callback )` method has been added.

Before sending any error, notifier.js will try each provided callback,
passing error data as parameter. If any returns false, error won't be
sent to errbit.

This allows users to define fine grain filters for their javascript
exceptions, like filtering out any error on scripts not coming from
their domain :

Airbrake.addFilter( function( error ){
return error.request_url.match( /^https?:\/\/my\.domain\.com\// )
});