Created
February 23, 2012 12:55
-
-
Save shime/1892697 to your computer and use it in GitHub Desktop.
HTML code for Airbrake javascript notifier
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<script type="text/javascript"> | |
//<![CDATA[ | |
(function(){ | |
var notifierJsScheme = (("https:" == document.location.protocol) ? "https://" : "http://"); | |
document.write(unescape("%3Cscript src='" + notifierJsScheme + "airbrake.io/javascripts/notifier.js' type='text/javascript'%3E%3C/script%3E")); | |
})(); | |
//]]> | |
</script><script src="http://airbrake.io/javascripts/notifier.js" type="text/javascript"></script> | |
<script type="text/javascript"> | |
//<![CDATA[ | |
// | |
// change this variables to fit your application! | |
window.Airbrake = (typeof(Airbrake) == 'undefined' && typeof(Hoptoad) != 'undefined') ? Hoptoad : Airbrake | |
Airbrake.setKey('80904ccb1c82c89089e845852f0d67e4'); | |
Airbrake.setHost('airbrake.io'); | |
Airbrake.setEnvironment('development'); | |
Airbrake.setErrorDefaults({ url: "http://0.0.0.0:3000/home/exception", component: "home", action: "exception" }); | |
//]]> | |
</script> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I forgot to note that you should add this above any javascript code in your application.