diff options
| author | かっこかり <67428053+kakkokari-gtyih@users.noreply.github.com> | 2024-05-01 13:52:59 +0900 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-05-01 13:52:59 +0900 |
| commit | 8c5e5640669c252faaf22ed8742d598ec0e2268f (patch) | |
| tree | c226bb0eb8d818efb731fab3d8891221809ff3f1 /packages/frontend/src/instance.ts | |
| parent | refactor(frontend): 非ログイン画面でのmeta取得を減らす (#13776) (diff) | |
| download | sharkey-8c5e5640669c252faaf22ed8742d598ec0e2268f.tar.gz sharkey-8c5e5640669c252faaf22ed8742d598ec0e2268f.tar.bz2 sharkey-8c5e5640669c252faaf22ed8742d598ec0e2268f.zip | |
fix type error
Diffstat (limited to 'packages/frontend/src/instance.ts')
| -rw-r--r-- | packages/frontend/src/instance.ts | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/packages/frontend/src/instance.ts b/packages/frontend/src/instance.ts index 7df6ec205c..6847321d6c 100644 --- a/packages/frontend/src/instance.ts +++ b/packages/frontend/src/instance.ts @@ -43,7 +43,7 @@ export async function fetchInstance(force = false): Promise<Misskey.entities.Met const cachedAt = miLocalStorage.getItem('instanceCachedAt') ? parseInt(miLocalStorage.getItem('instanceCachedAt')!) : 0; if (Date.now() - cachedAt < 1000 * 60 * 60) { - return; + return instance; } } |