handle case sentry is blocked by adblocker

This commit is contained in:
Son NK 2019-08-17 22:03:11 +02:00
parent d7d2ea04a9
commit fb4aedc604

View file

@ -104,7 +104,11 @@
<script>
{% if ENABLE_SENTRY %}
console.log("Init sentry");
Sentry.init({dsn: 'https://ad2187ed843340a1b4165bd8d5d6cdce@sentry.io/1478143'});
try {
Sentry.init({dsn: 'https://ad2187ed843340a1b4165bd8d5d6cdce@sentry.io/1478143'});
} catch (error) {
console.log("Sentry error, probably due to AdBlocker ...")
}
{% endif %}
// the modal does not get close when user clicks outside of modal