mirror of
https://github.com/pocket-id/pocket-id.git
synced 2026-03-31 11:46:37 +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();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user