Skip to content

Commit

Permalink
fix(firefox): catch sentry init error in content script
Browse files Browse the repository at this point in the history
  • Loading branch information
JalilArfaoui committed Jun 10, 2019
1 parent 1d5f196 commit adebbbb
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/app/content/index.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,11 @@
if (!(window as CustomWindow).__LMEM__CONTENT_SCRIPT_INJECTED__) {
const { configureSentryScope, initSentry } = require('../utils/sentry');

initSentry();
try {
initSentry();
} catch (error) {
console.warn('Could not init Sentry in contentScript', error);
}
configureSentryScope((scope: any) => {
scope.setTag('context', 'content');
});
Expand Down

0 comments on commit adebbbb

Please sign in to comment.