mirror of
https://iceshrimp.dev/limepotato/jormungandr-bite.git
synced 2024-11-24 19:07:32 -07:00
[client] isUpdateAvailable should not block UI rendering
This commit is contained in:
parent
cd8809e927
commit
4794702e6f
2 changed files with 6 additions and 2 deletions
|
@ -126,7 +126,9 @@ os.api("admin/abuse-user-reports", {
|
|||
});
|
||||
|
||||
if (defaultStore.state.showAdminUpdates) {
|
||||
updateAvailable = await isUpdateAvailable();
|
||||
isUpdateAvailable().then(res => {
|
||||
updateAvailable = res;
|
||||
});
|
||||
}
|
||||
|
||||
const NARROW_THRESHOLD = 600;
|
||||
|
|
|
@ -197,7 +197,9 @@ if ($i?.isAdmin) {
|
|||
});
|
||||
|
||||
if (defaultStore.state.showAdminUpdates) {
|
||||
updateAvailable = await isUpdateAvailable();
|
||||
isUpdateAvailable().then(res => {
|
||||
updateAvailable = res;
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue