protect against uclient
This commit is contained in:
parent
9dff16d26f
commit
185d3e0b16
|
|
@ -1,13 +1,13 @@
|
|||
// 2.4.8 http://d2wy8f7a9ursnm.cloudfront.net/bugsnag-2.4.8.min.js
|
||||
|
||||
|
||||
|
||||
|
||||
// manual code: make sure Bugsnag has it's API KEY
|
||||
window.Bugsnag.releaseStage = gon.global.env
|
||||
window.Bugsnag.enabledReleaseStages = gon.global.bugsnag_notify_release_stages
|
||||
if (window.Bugsnag) {
|
||||
try {
|
||||
window.Bugsnag.releaseStage = gon.global.env
|
||||
window.Bugsnag.enabledReleaseStages = gon.global.bugsnag_notify_release_stages
|
||||
|
||||
window.Bugsnag.start(
|
||||
window.Bugsnag.start(
|
||||
{
|
||||
apiKey: gon.global.bugsnag_key,
|
||||
appVersion: gon.global.version,
|
||||
|
|
@ -18,9 +18,15 @@ window.Bugsnag.start(
|
|||
//
|
||||
}
|
||||
}
|
||||
)
|
||||
)
|
||||
|
||||
|
||||
if(gon.user_id) {
|
||||
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