Merge pull request #1114 from sharelatex/as-fix-sentry-reporting

Fix Sentry reporting

GitOrigin-RevId: 1bbe598b520fe9edb136a148cc57af63df77cec4
This commit is contained in:
Paulo Jorge Reis 2018-11-15 09:39:39 +00:00 committed by sharelatex
parent 8c70d680f4
commit 4c9eee51df
2 changed files with 11 additions and 1 deletions

View file

@ -2,7 +2,7 @@
script(type="text/javascript"). script(type="text/javascript").
require.config({ require.config({
paths: { 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 // we highly recommend restricting exceptions to a domain in order to filter out clutter
// whitelistUrls: ['example.com/scripts/'] // whitelistUrls: ['example.com/scripts/']
}).install(); }).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) { }, function(err) {
console.log(">> error loading raven", err); console.log(">> error loading raven", err);

File diff suppressed because one or more lines are too long