mirror of
https://github.com/overleaf/overleaf.git
synced 2024-11-21 20:47:08 -05:00
Merge pull request #514 from sharelatex/ja-update-raven
Update Raven (Sentry lib) to 3.15.0 in client
This commit is contained in:
commit
6b746f757e
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