mirror of
https://github.com/lifegpc/eh_downloader_flutter.git
synced 2026-06-08 06:48:56 +08:00
11 lines
324 B
Dart
11 lines
324 B
Dart
// ignore: avoid_web_libraries_in_flutter
|
|
import 'dart:html';
|
|
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;
|