mirror of
https://github.com/simple-login/app.git
synced 2024-11-10 17:35:27 +08:00
Ignore unactionable Sentry JS errors
This commit is contained in:
parent
aa8e95062c
commit
c574824dbd
1 changed files with 28 additions and 1 deletions
|
@ -96,7 +96,34 @@
|
||||||
{% if SENTRY_DSN %}
|
{% if SENTRY_DSN %}
|
||||||
console.log("Init sentry");
|
console.log("Init sentry");
|
||||||
try {
|
try {
|
||||||
Sentry.init({dsn: '{{SENTRY_DSN}}'});
|
Sentry.init({
|
||||||
|
dsn: '{{SENTRY_DSN}}',
|
||||||
|
// https://docs.sentry.io/platforms/javascript/#filter-events--custom-logic
|
||||||
|
// Original gist https://gist.github.com/impressiver/5092952
|
||||||
|
ignoreErrors: [
|
||||||
|
// Random plugins/extensions
|
||||||
|
'top.GLOBALS',
|
||||||
|
// See: http://blog.errorception.com/2012/03/tale-of-unfindable-js-error.html
|
||||||
|
'originalCreateNotification',
|
||||||
|
'canvas.contentDocument',
|
||||||
|
'MyApp_RemoveAllHighlights',
|
||||||
|
'http://tt.epicplay.com',
|
||||||
|
'Can\'t find variable: ZiteReader',
|
||||||
|
'jigsaw is not defined',
|
||||||
|
'ComboSearch is not defined',
|
||||||
|
'http://loading.retry.widdit.com/',
|
||||||
|
'atomicFindClose',
|
||||||
|
// Facebook borked
|
||||||
|
'fb_xd_fragment',
|
||||||
|
// ISP "optimizing" proxy - `Cache-Control: no-transform` seems to
|
||||||
|
// reduce this. (thanks @acdha)
|
||||||
|
// See http://stackoverflow.com/questions/4113268
|
||||||
|
'bmi_SafeAddOnload',
|
||||||
|
'EBCallBackMessageReceived',
|
||||||
|
// See http://toolbar.conduit.com/Developer/HtmlAndGadget/Methods/JSInjection.aspx
|
||||||
|
'conduitPage'
|
||||||
|
]
|
||||||
|
});
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
console.log("Sentry error, probably due to AdBlocker ...")
|
console.log("Sentry error, probably due to AdBlocker ...")
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue