Skip to content

Commit 03121fe

Browse files
committed
fix(android): fixed error on sending message if missing dist option
1 parent 5472915 commit 03121fe

File tree

2 files changed

+1
-11
lines changed

2 files changed

+1
-11
lines changed

src/backend.ts

-10
Original file line numberDiff line numberDiff line change
@@ -84,16 +84,6 @@ export class NativescriptBackend extends BaseBackend<BrowserOptions> {
8484

8585
if (_options.enableNative !== false) {
8686
NSSentry.startWithDsnString(_options.dsn, _options);
87-
// .then(() => {
88-
// // NSSentry.setLogLevel(_options.debug ? 2 : 1);
89-
// });
90-
} else {
91-
// if (__DEV__ && _options.enableNativeNagger) {
92-
// Alert.alert(
93-
// 'Sentry',
94-
// 'Warning, could not connect to Sentry native SDK.\nIf you do not want to use the native component please pass `enableNative: false` in the options.\nVisit: https://docs.sentry.io/clients/react-native/ for more details.'
95-
// );
96-
// }
9787
}
9888
}
9989

src/nssentry.android.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -179,7 +179,7 @@ export namespace NSSentry {
179179

180180
const envelopeString = `${headerString}\n${itemString}\n${payloadString}`;
181181
captureEnvelope(envelopeString);
182-
if (sentryOptions.flushSendEvent === true) {
182+
if (sentryOptions?.flushSendEvent === true) {
183183
io.sentry.Sentry.flush(0);
184184
}
185185
resolve({ status: Status.Success });

0 commit comments

Comments
 (0)