Skip to content

Instantly share code, notes, and snippets.

@brianr
Created April 1, 2013 22:48
Show Gist options
  • Save brianr/5288423 to your computer and use it in GitHub Desktop.
Save brianr/5288423 to your computer and use it in GitHub Desktop.
bare bones rollbar test page
<html>
<head>
<script>
var _rollbarParams = {"server.environment": "production"};
_rollbarParams["notifier.snippet_version"] = "2"; var _rollbar=["client-side-token-here", _rollbarParams]; var _ratchet=_rollbar;
(function(w,d){w.onerror=function(e,u,l){_rollbar.push({_t:'uncaught',e:e,u:u,l:l});};var i=function(){var s=d.createElement("script");var
f=d.getElementsByTagName("script")[0];s.src="//d37gvrvc0wt4s1.cloudfront.net/js/1/rollbar.min.js";s.async=!0;
f.parentNode.insertBefore(s,f);};if(w.addEventListener){w.addEventListener("load",i,!1);}else{w.attachEvent("onload",i);}})(window,document);
</script>
</head>
<body>
Hi
</body>
</html>
@brianr
Copy link
Author

brianr commented Apr 1, 2013

How I'm using this:

  1. Save this as ~/test.html
  2. From a terminal, run a simple http server: python -m SimpleHTTPServer 8000
  3. Visit http://localhost:8000/test.html
  4. Type javascript:testing_123(); in the address bar, and check the Console and Network tabs.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment