mirror of
https://github.com/HChaZZY/PiliPlus.git
synced 2025-12-06 09:13:48 +08:00
linux check (#1331)
This commit is contained in:
@@ -60,7 +60,7 @@ class _WebviewPageState extends State<WebviewPage> {
|
||||
|
||||
@override
|
||||
Widget build(BuildContext context) {
|
||||
if (Platform.isWindows) {
|
||||
if (Platform.isWindows || Platform.isLinux) {
|
||||
return Scaffold(
|
||||
appBar: AppBar(),
|
||||
body: Center(
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
import 'dart:io';
|
||||
|
||||
void main() async {
|
||||
if (Platform.isWindows) {
|
||||
if (Platform.isWindows || Platform.isLinux) {
|
||||
updateVersion();
|
||||
}
|
||||
|
||||
|
||||
@@ -27,7 +27,7 @@ import 'package:get/get.dart';
|
||||
|
||||
abstract class LoginUtils {
|
||||
static FutureOr setWebCookie([Account? account]) {
|
||||
if (Platform.isWindows) {
|
||||
if (Platform.isWindows || Platform.isLinux) {
|
||||
return null;
|
||||
}
|
||||
final cookies = (account ?? Accounts.main).cookieJar.toList();
|
||||
|
||||
Reference in New Issue
Block a user