mirror of
https://github.com/HChaZZY/PiliPlus.git
synced 2025-12-06 09:13:48 +08:00
fix: block page state
Signed-off-by: bggRGjQaUbCoE <githubaccount56556@proton.me>
This commit is contained in:
@@ -67,11 +67,13 @@ class _SponsorBlockPageState extends State<SponsorBlockPage> {
|
||||
'$_blockServer/api/status/uptime',
|
||||
)
|
||||
.then((res) {
|
||||
if (mounted) {
|
||||
setState(() {
|
||||
_serverStatus = res.statusCode == 200 &&
|
||||
res.data is String &&
|
||||
Utils.isStringNumeric(res.data);
|
||||
});
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user