mirror of
https://github.com/bggRGjQaUbCoE/PiliPlus.git
synced 2026-05-29 20:48:40 +00:00
@@ -1,3 +1,5 @@
|
||||
import 'package:PiliPlus/utils/utils.dart';
|
||||
|
||||
enum UaType {
|
||||
mob(
|
||||
'Mozilla/5.0 (Linux; Android 10; SM-G975F) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/91.0.4472.101 Mobile Safari/537.36',
|
||||
@@ -6,6 +8,8 @@ enum UaType {
|
||||
'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/15.2 Safari/605.1.15',
|
||||
);
|
||||
|
||||
static UaType get platformUA => Utils.isMobile ? mob : pc;
|
||||
|
||||
final String ua;
|
||||
const UaType(this.ua);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user