mirror of
https://iceshrimp.dev/iceshrimp/iceshrimp
synced 2025-01-22 05:22:53 +09:00
[client] isUpdateAvailable should not block UI rendering
This commit is contained in:
parent
cd8809e927
commit
4794702e6f
@ -126,7 +126,9 @@ os.api("admin/abuse-user-reports", {
|
|||||||
});
|
});
|
||||||
|
|
||||||
if (defaultStore.state.showAdminUpdates) {
|
if (defaultStore.state.showAdminUpdates) {
|
||||||
updateAvailable = await isUpdateAvailable();
|
isUpdateAvailable().then(res => {
|
||||||
|
updateAvailable = res;
|
||||||
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
const NARROW_THRESHOLD = 600;
|
const NARROW_THRESHOLD = 600;
|
||||||
|
@ -197,7 +197,9 @@ if ($i?.isAdmin) {
|
|||||||
});
|
});
|
||||||
|
|
||||||
if (defaultStore.state.showAdminUpdates) {
|
if (defaultStore.state.showAdminUpdates) {
|
||||||
updateAvailable = await isUpdateAvailable();
|
isUpdateAvailable().then(res => {
|
||||||
|
updateAvailable = res;
|
||||||
|
});
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user