linux check (#1331)

This commit is contained in:
NLsdt
2025-09-26 09:46:47 +08:00
committed by GitHub
parent 5fd3d32200
commit 7637c44645
3 changed files with 3 additions and 3 deletions

View File

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

View File

@@ -1,7 +1,7 @@
import 'dart:io';
void main() async {
if (Platform.isWindows) {
if (Platform.isWindows || Platform.isLinux) {
updateVersion();
}

View File

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