1
0
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:
Elias Schneider
2025-02-04 18:19:06 +01:00
parent 19ef4833e9
commit d06257ec9b
4 changed files with 24 additions and 10 deletions

View File

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

View File

@@ -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"