feat: change navbar when PUBLIC_INSTANCE_URL is set
This commit is contained in:
1 parent
783ecbcb5f
commit
6a5b01b1a8
5 files changed
+54
-14
No files matched your search
@@ -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
|
||||
|
||||
Reference in new issue
Block a user