mirror of
https://github.com/lifegpc/eh_downloader_flutter.git
synced 2026-07-08 01:30:28 +08:00
update server settings page
This commit is contained in:
@@ -1,2 +1,3 @@
|
||||
String get oUA => "";
|
||||
bool get isSafari => false;
|
||||
bool get isMobile => false;
|
||||
|
||||
@@ -5,5 +5,6 @@ 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;
|
||||
|
||||
Reference in New Issue
Block a user