update server settings page

This commit is contained in:
2024-01-19 15:42:27 +08:00
parent a038421269
commit cd0c49b86e
6 changed files with 195 additions and 3 deletions

View File

@@ -1,2 +1,3 @@
String get oUA => "";
bool get isSafari => false;
bool get isMobile => false;

View File

@@ -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;