Skip to content

Commit 3ec3c79

Browse files
author
Miguel Hernández Jaso
committed
Make isNativeClientAvailable a boolean function
Currently calling this function can throw undefined, so we end up writing something like . IMHO this should return either true or false.
1 parent ed17b4e commit 3ec3c79

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/Sentry.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ export class Sentry {
8585
}
8686

8787
static isNativeClientAvailable() {
88-
return Sentry._nativeClient;
88+
return Sentry._nativeClient !== undefined;
8989
}
9090

9191
static crash() {

0 commit comments

Comments
 (0)