{"size": 586, "ext": "js", "max_stars_repo_path": "sentry/public/js/sentry-web.js", "max_stars_repo_name": "DeveloperMetal/frappe-sentry", "max_stars_repo_stars_event_min_datetime": null, "max_stars_repo_stars_event_max_datetime": null, "max_issues_repo_path": "sentry/public/js/sentry-web.js", "max_issues_repo_name": "DeveloperMetal/frappe-sentry", "max_issues_repo_issues_event_min_datetime": null, "max_issues_repo_issues_event_max_datetime": null, "max_forks_repo_path": "sentry/public/js/sentry-web.js", "max_forks_repo_name": "DeveloperMetal/frappe-sentry", "max_forks_repo_forks_event_min_datetime": "2020-06-07T08:35:13.000Z", "max_forks_repo_forks_event_max_datetime": "2020-06-07T08:35:13.000Z"}
{"max_stars_count": null, "max_issues_count": null, "max_forks_count": 1, "avg_line_length": 25.4782608696, "max_line_length": 64, "alphanum_fraction": 0.4607508532}
frappe.ready(function () {
    if (!window.sentry_dsn) {
        frappe.call({
            method: "sentry.utils.get_sentry_dsn",
            callback: function (r) {
                if(r.message){
                    window.localStorage.sentry_dsn = r.message
                }
            }
        })
    }

    if (window.localStorage.sentry_dsn) {
        Raven.config(window.localStorage.sentry_dsn).install();


        if (frappe.sid != "Guest") {
            Raven.setUserContext({
                email: frappe.user_id,
            })
        }
    }
});