mirror of
https://github.com/pocket-id/pocket-id.git
synced 2026-02-12 06:49:00 +00:00
fix: don't return error page if version info fetching failed
This commit is contained in:
@@ -15,6 +15,9 @@ export const load: LayoutServerLoad = async () => {
|
||||
|
||||
if (!versionInformation || cacheExpired) {
|
||||
versionInformation = await appConfigService.getVersionInformation();
|
||||
if (versionInformation.newestVersion == null) {
|
||||
console.error('Failed to fetch version information. Trying again in 3 hours.');
|
||||
}
|
||||
versionInformationLastUpdated = Date.now();
|
||||
}
|
||||
|
||||
|
||||
@@ -50,7 +50,7 @@
|
||||
{label}
|
||||
</a>
|
||||
{/each}
|
||||
{#if $userStore?.isAdmin && !versionInformation.isUpToDate}
|
||||
{#if $userStore?.isAdmin && versionInformation.isUpToDate === false}
|
||||
<a
|
||||
href="https://github.com/stonith404/pocket-id/releases/latest"
|
||||
target="_blank"
|
||||
|
||||
Reference in New Issue
Block a user