[website] set sentry environment

This commit is contained in:
Ivan Blinkov 2020-05-19 19:11:00 +03:00 committed by GitHub
parent b5620c070c
commit f18eedc5e7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1,5 +1,8 @@
(function () { (function () {
Sentry.init({ dsn: 'https://2b95b52c943f4ad99baccab7a9048e4d@o388870.ingest.sentry.io/5246103' }); Sentry.init({
dsn: 'https://2b95b52c943f4ad99baccab7a9048e4d@o388870.ingest.sentry.io/5246103',
environment: window.location.hostname === 'clickhouse.tech' ? 'prod' : 'test'
});
$(document).click(function (event) { $(document).click(function (event) {
var target = $(event.target); var target = $(event.target);
var target_id = target.attr('id'); var target_id = target.attr('id');