mirror of
https://github.com/overleaf/overleaf.git
synced 2025-02-23 07:01:36 +00:00
Merge pull request #1114 from sharelatex/as-fix-sentry-reporting
Fix Sentry reporting GitOrigin-RevId: 1bbe598b520fe9edb136a148cc57af63df77cec4
This commit is contained in:
parent
8c70d680f4
commit
4c9eee51df
2 changed files with 11 additions and 1 deletions
|
@ -2,7 +2,7 @@
|
|||
script(type="text/javascript").
|
||||
require.config({
|
||||
paths: {
|
||||
'raven': 'libs/raven-3.15.0.min'
|
||||
'raven': 'libs/raven-3.27.0.min'
|
||||
}
|
||||
});
|
||||
|
||||
|
@ -71,6 +71,12 @@
|
|||
// we highly recommend restricting exceptions to a domain in order to filter out clutter
|
||||
// whitelistUrls: ['example.com/scripts/']
|
||||
}).install();
|
||||
//- We conditionally depend on Raven (based on whether the sentry
|
||||
//- config is set or not). This does not play well with require.js when
|
||||
//- minifying as it is expecting all dependencies to be defined at
|
||||
//- compile time. Previously Raven added itself as a global, so we just
|
||||
//- mimic that old behaviour
|
||||
window.Raven = Raven
|
||||
}
|
||||
}, function(err) {
|
||||
console.log(">> error loading raven", err);
|
||||
|
|
4
services/web/public/js/libs/raven-3.27.0.min.js
vendored
Normal file
4
services/web/public/js/libs/raven-3.27.0.min.js
vendored
Normal file
File diff suppressed because one or more lines are too long
Loading…
Reference in a new issue