-
Notifications
You must be signed in to change notification settings - Fork 105
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Completely remove Sentry from Firefox extension bundle
- Update highlights.js
- Loading branch information
Rustem Mussabekov
committed
Jun 28, 2024
1 parent
3d6b18b
commit f7efeb2
Showing
11 changed files
with
69 additions
and
61 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
module.exports = { | ||
hosts: 'https://app.raindrop.io https://*.sentry.io https://sentry.io https://raindrop.onfastspring.com' | ||
hosts: 'https://app.raindrop.io https://raindrop.onfastspring.com '+(process.env.SENTRY_RELEASE ? 'https://*.sentry.io https://sentry.io' : '') | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,8 @@ | ||
export default { | ||
sentry: { | ||
const vendors = {} | ||
|
||
if (process.env.SENTRY_RELEASE) | ||
vendors.sentry = { | ||
dsn: 'https://c647a147102b4de68dd9dd8690e06840@o199199.ingest.sentry.io/5264532' | ||
} | ||
} | ||
|
||
export default vendors |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
import React from 'react' | ||
import * as Sentry from '@sentry/react' | ||
import config from '~config' | ||
import pkg from '../../../../package.json' | ||
import { target } from '~target' | ||
|
||
Sentry.init({ | ||
...config.vendors.sentry, | ||
release: process.env.SENTRY_RELEASE, | ||
ignoreErrors: [ | ||
'ResizeObserver loop', | ||
'Non-Error promise rejection captured with keys: message', //happen when extension background page crash | ||
'The string did not match the expected pattern', //weird safari error | ||
'call screen.orientation.lock', //weird android chrome error | ||
'Actions may not have an undefined "type" property. Have you misspelled a constant?', //if redux action have undefined field in it, can be safely ignored | ||
'Refused to evaluate a string as JavaScript because \'unsafe-eval\'', | ||
'Cannot read property \'Sortable', //https://sentry.io/organizations/oblako-corp/issues/2170103500 | ||
], | ||
environment: `${target}-${process.env.NODE_ENV}` | ||
}) | ||
Sentry.setTag('version', pkg.version) | ||
|
||
export default class MySentry extends React.Component { | ||
render() { | ||
return ( | ||
<Sentry.ErrorBoundary showDialog> | ||
{this.props.children} | ||
</Sentry.ErrorBoundary> | ||
) | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
let Component = process.env.SENTRY_RELEASE ? | ||
require('./component').default : | ||
function({children}) { return children } | ||
|
||
export default Component |
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters