Add release to js sentry events.

parent 4beaa31d
......@@ -4,8 +4,9 @@
// Registry Sentry for error reporting
let sentry_token = document.head.querySelector("[name=sentry_token]").getAttribute('content');
let version = document.head.querySelector("[name=version]").getAttribute('content');
if (sentry_token){
Raven.config(sentry_token, {release: version}).install();
// support for week numbers in javascript
......@@ -8,6 +8,7 @@
<!-- export variables to javascript from server configuration -->
<meta name="mailto" content="{{mailto}}">
<meta name="sentry_token" content="{{sentry_token}}">
<meta name="version" content="{{version}}">
<title>{% trans "Site Title" %}</title>
<link rel="shortcut icon" type="image/png" href="{% static 'favicon.ico' %}"/>
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment