mirror of
https://iceshrimp.dev/limepotato/jormungandr-bite.git
synced 2024-11-28 12:57:31 -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) {
|
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 a new issue