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 @override
Widget build(BuildContext context) { Widget build(BuildContext context) {
if (Platform.isWindows) { if (Platform.isWindows || Platform.isLinux) {
return Scaffold( return Scaffold(
appBar: AppBar(), appBar: AppBar(),
body: Center( body: Center(

View File

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

View File

@@ -27,7 +27,7 @@ import 'package:get/get.dart';
abstract class LoginUtils { abstract class LoginUtils {
static FutureOr setWebCookie([Account? account]) { static FutureOr setWebCookie([Account? account]) {
if (Platform.isWindows) { if (Platform.isWindows || Platform.isLinux) {
return null; return null;
} }
final cookies = (account ?? Accounts.main).cookieJar.toList(); final cookies = (account ?? Accounts.main).cookieJar.toList();