Skip to content

Commit 020a628

Browse files
authored
fix: correct fix for native crashes to get breadcrumbs
Comment out super.addBreadcrumb call and uncomment NATIVE.addBreadcrumb.
1 parent 7fd81d1 commit 020a628

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/sentry/scope.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -66,10 +66,10 @@ export class NativescriptScope extends Scope {
6666
data: breadcrumb.data ? convertToNormalizedObject(breadcrumb.data) : undefined
6767
};
6868

69-
super.addBreadcrumb(mergedBreadcrumb, maxBreadcrumbs);
69+
// super.addBreadcrumb(mergedBreadcrumb, maxBreadcrumbs);
7070

7171
// const finalBreadcrumb = this._breadcrumbs[this._breadcrumbs.length - 1];
72-
// NATIVE.addBreadcrumb(finalBreadcrumb);
72+
NATIVE.addBreadcrumb(finalBreadcrumb);
7373
return this;
7474
}
7575

0 commit comments

Comments
 (0)