Skip to content

Commit

Permalink
cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
maxlapides committed May 19, 2024
1 parent 5f9fcd0 commit dcba7b1
Showing 1 changed file with 12 additions and 14 deletions.
26 changes: 12 additions & 14 deletions packages/core/lib/analytics_web.dart
Original file line number Diff line number Diff line change
Expand Up @@ -14,20 +14,18 @@ class AnalyticsPlatformImpl extends AnalyticsPlatform {

/// Returns a [String] containing the version of the platform.
@override
Future<NativeContext> getContext({bool collectDeviceId = false}) =>
Future.value(
NativeContext(
app: NativeContextApp(
name: web.window.navigator.appName,
version: web.window.navigator.appVersion,
namespace: web.window.navigator.appCodeName,
),
userAgent: web.window.navigator.userAgent,
locale: web.window.navigator.language,
screen: NativeContextScreen(
height: web.window.screen.height,
width: web.window.screen.width,
),
Future<NativeContext> getContext({bool collectDeviceId = false}) async =>
NativeContext(
app: NativeContextApp(
name: web.window.navigator.appName,
version: web.window.navigator.appVersion,
namespace: web.window.navigator.appCodeName,
),
userAgent: web.window.navigator.userAgent,
locale: web.window.navigator.language,
screen: NativeContextScreen(
height: web.window.screen.height,
width: web.window.screen.width,
),
);
}
Expand Down

0 comments on commit dcba7b1

Please sign in to comment.