mirror of
https://github.com/lifegpc/eh_downloader_flutter.git
synced 2026-06-06 05:49:03 +08:00
10 lines
293 B
Dart
10 lines
293 B
Dart
import 'package:web/web.dart';
|
|
import 'package:user_agent_analyzer/user_agent_analyzer.dart';
|
|
|
|
UserAgent? _ua;
|
|
|
|
UserAgent get ua => _ua ??= UserAgent(window.navigator.userAgent);
|
|
String get oUA => window.navigator.userAgent;
|
|
bool get isSafari => ua.isSafari;
|
|
bool get isMobile => ua.isMobile;
|