Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add sentry-js config #2857

Merged
merged 1 commit into from
Oct 9, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
21 changes: 18 additions & 3 deletions tobaccocessation/templates/base.html
Original file line number Diff line number Diff line change
Expand Up @@ -9,19 +9,34 @@

<link href='//fonts.googleapis.com/css?family=Montserrat' rel='stylesheet' type='text/css' />

<script>
window.sentryOnLoad = function () {
Sentry.init({
{% if STAGING_ENV %}
environment: 'staging'
{% elif debug %}
environment: 'development'
{% else %}
environment: 'production'
{% endif %}
});
};
</script>
<script
src="https://js.sentry-cdn.com/544cf86fc7664f4d9af2ca307be58190.min.js"
crossorigin="anonymous"></script>

<script type="text/javascript" src="{{STATIC_URL}}js/jquery-1.10.1.min.js"></script>
<script type="text/javascript" src="{{STATIC_URL}}bootstrap/js/bootstrap.min.js"></script>

<link rel="stylesheet" href="{{STATIC_URL}}css/main.css" media="screen" />
<link rel="stylesheet" href="{{STATIC_URL}}css/print.css" media="print" />

{% block css %}{% endblock %}

{% block css %}{% endblock %}

{% block extrahead %}{% endblock %}
<link rel="stylesheet" href="https://search.sites.columbia.edu/cu-privacy-notice/cu-privacy-notice.css" />
<script src="https://search.sites.columbia.edu/cu-privacy-notice/cu-privacy-notice.js"></script>

</head>
<body class="one_column {% block widthtype %}fluid{% endblock %}">
<div id="container">
Expand Down