Merge pull request #514 from sharelatex/ja-update-raven

Update Raven (Sentry lib) to 3.15.0 in client
This commit is contained in:
Shane Kilkelly 2017-06-01 09:13:40 +01:00 committed by GitHub
commit 6b746f757e
2 changed files with 76 additions and 70 deletions

View file

@ -1,10 +1,12 @@
- if (typeof(sentrySrc) != "undefined")
- if (sentrySrc.match(/^([a-z]+:)?\/\//i))
script(src=sentrySrc)
- else
script(src=buildJsPath("libs/"+sentrySrc, {fingerprint:false}))
- if (typeof(sentrySrc) != "undefined")
- if (typeof(sentryPublicDSN) != "undefined")
script(type="text/javascript").
require.config({
paths: {
'raven': 'libs/raven-3.15.0.min'
}
});
require(["raven"], function(Raven) {
if (typeof(Raven) != "undefined" && Raven.config) {
Raven.config("#{sentryPublicDSN}", {
tags: { 'commit': '@@COMMIT@@', 'build': '@@RELEASE@@' },
@ -70,6 +72,7 @@
// whitelistUrls: ['example.com/scripts/']
}).install();
}
})
- if (user && typeof(user) != "undefined" && typeof (user.email) != "undefined")
script(type="text/javascript").
if (typeof(Raven) != "undefined" && Raven.setUserContext) {

File diff suppressed because one or more lines are too long