protect against uclient
This commit is contained in:
parent
9dff16d26f
commit
185d3e0b16
|
|
@ -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);
|
||||
}
|
||||
|
||||
}
|
||||
Loading…
Reference in New Issue