mirror of
https://github.com/overleaf/overleaf.git
synced 2024-11-30 10:54:09 -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 (typeof(sentryPublicDSN) != "undefined")
|
||||||
- if (sentrySrc.match(/^([a-z]+:)?\/\//i))
|
|
||||||
script(src=sentrySrc)
|
|
||||||
- else
|
|
||||||
script(src=buildJsPath("libs/"+sentrySrc, {fingerprint:false}))
|
|
||||||
- if (typeof(sentrySrc) != "undefined")
|
|
||||||
script(type="text/javascript").
|
script(type="text/javascript").
|
||||||
|
require.config({
|
||||||
|
paths: {
|
||||||
|
'raven': 'libs/raven-3.15.0.min'
|
||||||
|
}
|
||||||
|
});
|
||||||
|
|
||||||
|
require(["raven"], function(Raven) {
|
||||||
if (typeof(Raven) != "undefined" && Raven.config) {
|
if (typeof(Raven) != "undefined" && Raven.config) {
|
||||||
Raven.config("#{sentryPublicDSN}", {
|
Raven.config("#{sentryPublicDSN}", {
|
||||||
tags: { 'commit': '@@COMMIT@@', 'build': '@@RELEASE@@' },
|
tags: { 'commit': '@@COMMIT@@', 'build': '@@RELEASE@@' },
|
||||||
|
@ -70,6 +72,7 @@
|
||||||
// whitelistUrls: ['example.com/scripts/']
|
// whitelistUrls: ['example.com/scripts/']
|
||||||
}).install();
|
}).install();
|
||||||
}
|
}
|
||||||
|
})
|
||||||
- if (user && typeof(user) != "undefined" && typeof (user.email) != "undefined")
|
- if (user && typeof(user) != "undefined" && typeof (user.email) != "undefined")
|
||||||
script(type="text/javascript").
|
script(type="text/javascript").
|
||||||
if (typeof(Raven) != "undefined" && Raven.setUserContext) {
|
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