mirror of
https://github.com/yu-i-i/overleaf-cep.git
synced 2026-11-15 06:33:55 +01:00
Merge pull request #2650 from overleaf/revert-2570-as-sentry-source-maps
Revert "Upload source maps to Sentry" GitOrigin-RevId: 6f6a122209553b9fde664ff55ebec37f7cb6ef7e
This commit is contained in:
@@ -1,18 +0,0 @@
|
||||
// Conditionally enable Sentry based on whether the DSN token is set
|
||||
if (window.ExposedSettings.sentryDsn) {
|
||||
import(/* webpackChunkName: "sentry" */ '@sentry/browser').then(Sentry => {
|
||||
Sentry.init({
|
||||
dsn: window.ExposedSettings.sentryDsn,
|
||||
|
||||
// Ignore errors unless they come from overleaf.com/sharelatex.com
|
||||
// Adapted from: https://docs.sentry.io/platforms/javascript/#decluttering-sentry
|
||||
whitelistUrls: [
|
||||
/https:\/\/[a-z]+\.overleaf\.com/,
|
||||
/https:\/\/[a-z]+\.sharelatex\.com/
|
||||
]
|
||||
})
|
||||
|
||||
// Previously Raven added itself as a global, so we mimic that old behaviour
|
||||
window.Raven = Sentry
|
||||
})
|
||||
}
|
||||
Reference in New Issue
Block a user