protect against uclient

This commit is contained in:
Seth Call 2021-01-04 23:41:49 -06:00
parent 9dff16d26f
commit 185d3e0b16
1 changed files with 24 additions and 18 deletions

View File

@ -1,9 +1,9 @@
// 2.4.8 http://d2wy8f7a9ursnm.cloudfront.net/bugsnag-2.4.8.min.js
// manual code: make sure Bugsnag has it's API KEY
if (window.Bugsnag) {
try {
window.Bugsnag.releaseStage = gon.global.env
window.Bugsnag.enabledReleaseStages = gon.global.bugsnag_notify_release_stages
@ -24,3 +24,9 @@ window.Bugsnag.start(
if (gon.user_id) {
Bugsnag.setUser(gon.user_id, gon.user_email, gon.user_name)
}
}
catch (e) {
console.log("Unable to init bugsnag", e);
}
}