fix: block page state

Signed-off-by: bggRGjQaUbCoE <githubaccount56556@proton.me>
This commit is contained in:
bggRGjQaUbCoE
2025-04-07 13:39:57 +08:00
parent 6d89b7769e
commit a8cfbb12fd

View File

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