Skip to content

Commit

Permalink
update naming
Browse files Browse the repository at this point in the history
  • Loading branch information
buenaflor committed Sep 12, 2024
1 parent 66a1c4c commit 002c9f7
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions dart/lib/src/sentry_client.dart
Original file line number Diff line number Diff line change
Expand Up @@ -64,11 +64,13 @@ class SentryClient {
options.transport = HttpTransport(options, rateLimiter);
}
// TODO: Web might change soon to use the JS SDK so we can remove it here later on
final enableSpotlight = (options.spotlight.enabled &&
final enableFlutterSpotlight = (options.spotlight.enabled &&
(options.platformChecker.isWeb ||
options.platformChecker.platform.isLinux ||
options.platformChecker.platform.isWindows));
if (enableSpotlight) {
// Spotlight in the Flutter layer is only enabled for Web, Linux and Windows
// Other platforms use spotlight through their native SDKs
if (enableFlutterSpotlight) {
options.transport = SpotlightHttpTransport(options, options.transport);
}
return SentryClient._(options);
Expand Down

0 comments on commit 002c9f7

Please sign in to comment.