diff options
| author | Hazelnoot <acomputerdog@gmail.com> | 2025-05-30 15:03:19 -0400 |
|---|---|---|
| committer | Hazelnoot <acomputerdog@gmail.com> | 2025-05-30 15:03:19 -0400 |
| commit | dbc82c1efece98db1138f26faf1829b4501784de (patch) | |
| tree | c23ceee4213992e72d596d1d358a46fcd9aa2434 /packages/frontend/src/instance.ts | |
| parent | fix circular reference between i.ts, instance.ts, and misskeyApi.ts (diff) | |
| download | sharkey-dbc82c1efece98db1138f26faf1829b4501784de.tar.gz sharkey-dbc82c1efece98db1138f26faf1829b4501784de.tar.bz2 sharkey-dbc82c1efece98db1138f26faf1829b4501784de.zip | |
catch errors from fetchInstance() to resolve test errors
Diffstat (limited to 'packages/frontend/src/instance.ts')
| -rw-r--r-- | packages/frontend/src/instance.ts | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/packages/frontend/src/instance.ts b/packages/frontend/src/instance.ts index 956fc9e120..953af6333a 100644 --- a/packages/frontend/src/instance.ts +++ b/packages/frontend/src/instance.ts @@ -65,4 +65,6 @@ export async function fetchInstance(force = false): Promise<Misskey.entities.Met } // instance export can be empty sometimes, which causes problems. -nextTick(() => fetchInstance()); +await fetchInstance().catch(err => { + console.warn('Initial meta fetch failed:', err); +}); |