Skip to content

Instantly share code, notes, and snippets.

@timrwood
Created November 30, 2012 01:54
Show Gist options
  • Save timrwood/4173258 to your computer and use it in GitHub Desktop.
Save timrwood/4173258 to your computer and use it in GitHub Desktop.
Tracking js errors in Rosy
<script>
require(["$"], function ($) {
define("jquery", $)
require(["__projectname__/Site"], function (Site) {
try {
Site.initialize();
} catch (e) {
// log errors
}
});
});
</script>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment