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
|
@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(
|
||||||
|
|||||||
@@ -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();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -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();
|
||||||
|
|||||||
Reference in New Issue
Block a user