feat: change navbar when PUBLIC_INSTANCE_URL is set

This commit is contained in:
Xyphyn committed 2023-07-31 15:42:15 -07:00
1 parent 783ecbcb5f
commit 6a5b01b1a8
5 files changed
+54 -14

No files matched your search

+7
View File
@@ -39,6 +39,13 @@ export const authData = writable<AuthData | undefined>()
export const user = writable<(MyUserInfo & UserData) | undefined | null>(
undefined
)
export const site = writable<GetSiteResponse | undefined>(undefined)
if (LINKED_INSTANCE_URL) {
getClient(LINKED_INSTANCE_URL)
.getSite({})
.then((s) => site.set(s))
}
setInterval(async () => {
// check for unread messages