summaryrefslogtreecommitdiff
path: root/packages/frontend/src/instance.ts
diff options
context:
space:
mode:
authorかっこかり <67428053+kakkokari-gtyih@users.noreply.github.com>2024-05-01 13:52:59 +0900
committerGitHub <noreply@github.com>2024-05-01 13:52:59 +0900
commit8c5e5640669c252faaf22ed8742d598ec0e2268f (patch)
treec226bb0eb8d818efb731fab3d8891221809ff3f1 /packages/frontend/src/instance.ts
parentrefactor(frontend): 非ログイン画面でのmeta取得を減らす (#13776) (diff)
downloadsharkey-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.ts2
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;
}
}