Update Raven (Sentry lib) to 3.15.0 in client

This commit is contained in:
James Allen 2017-05-22 16:45:50 +01:00
parent 76b8fecde9
commit 32b27766bc
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