mirror of
https://github.com/overleaf/overleaf.git
synced 2024-11-07 20:31:06 -05:00
Update Raven (Sentry lib) to 3.15.0 in client
This commit is contained in:
parent
76b8fecde9
commit
32b27766bc
2 changed files with 76 additions and 70 deletions
|
@ -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) {
|
||||
|
|
3
services/web/public/js/libs/raven-3.15.0.min.js
vendored
Normal file
3
services/web/public/js/libs/raven-3.15.0.min.js
vendored
Normal file
File diff suppressed because one or more lines are too long
Loading…
Reference in a new issue