airbrake/airbrake — pull request #201 by kennethkalmer (2013-04-10 08:54:25+00:00)
Title: Wrap the JS notifier configuration in a try..catch block

...since the notifier JS might have failed to load.

Today again we're seeing epic wait times and timeouts for api.airbrake.io. It is naive to assume the JS will in fact load and we'll have _Airbrake_ defined.

5f46c6a does the most basic, but I'm tempted to actually add a noop error handler in the catch block. Any objections to doing that as well?