Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
HTML code for Airbrake javascript notifier
<script type="text/javascript">
var notifierJsScheme = (("https:" == document.location.protocol) ? "https://" : "http://");
document.write(unescape("%3Cscript src='" + notifierJsScheme + "' type='text/javascript'%3E%3C/script%3E"));
</script><script src="" type="text/javascript"></script>
<script type="text/javascript">
// change this variables to fit your application!
window.Airbrake = (typeof(Airbrake) == 'undefined' && typeof(Hoptoad) != 'undefined') ? Hoptoad : Airbrake
Airbrake.setErrorDefaults({ url: "", component: "home", action: "exception" });

This comment has been minimized.

Copy link
Owner Author

shime commented Feb 23, 2012

I forgot to note that you should add this above any javascript code in your application.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.