mirror of
https://github.com/simple-login/app.git
synced 2025-02-23 23:34:05 +08:00
handle case sentry is blocked by adblocker
This commit is contained in:
parent
d7d2ea04a9
commit
fb4aedc604
1 changed files with 5 additions and 1 deletions
|
@ -104,7 +104,11 @@
|
||||||
<script>
|
<script>
|
||||||
{% if ENABLE_SENTRY %}
|
{% if ENABLE_SENTRY %}
|
||||||
console.log("Init sentry");
|
console.log("Init sentry");
|
||||||
|
try {
|
||||||
Sentry.init({dsn: 'https://ad2187ed843340a1b4165bd8d5d6cdce@sentry.io/1478143'});
|
Sentry.init({dsn: 'https://ad2187ed843340a1b4165bd8d5d6cdce@sentry.io/1478143'});
|
||||||
|
} catch (error) {
|
||||||
|
console.log("Sentry error, probably due to AdBlocker ...")
|
||||||
|
}
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|
||||||
// the modal does not get close when user clicks outside of modal
|
// the modal does not get close when user clicks outside of modal
|
||||||
|
|
Loading…
Reference in a new issue