Skip to content

Commit

Permalink
fix: Act on allowSentryBreadcrumbs when appropriate (#3037)
Browse files Browse the repository at this point in the history
The included test, to check for a breadcrumb category starting with "sentry", was improperly written.
  • Loading branch information
Empact authored Nov 12, 2020
1 parent 0a2bfdb commit 9a23684
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/browser/test/integration/common/init.js
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ function initSDK() {

// One of the tests use manually created breadcrumb without eventId and we want to let it through
if (
breadcrumb.category.indexOf("sentry" === 0) &&
breadcrumb.category.indexOf("sentry") === 0 &&
breadcrumb.event_id &&
!window.allowSentryBreadcrumbs
) {
Expand Down

0 comments on commit 9a23684

Please sign in to comment.