switching networks works, established server functions
This commit is contained in:
@@ -8,7 +8,7 @@ class ProfileMenu extends Shadow {
|
||||
p("Email: ")
|
||||
.fontWeight("bold")
|
||||
|
||||
p(window.profile?.email)
|
||||
p(global.profile?.email)
|
||||
})
|
||||
.gap(1, em)
|
||||
|
||||
@@ -16,7 +16,7 @@ class ProfileMenu extends Shadow {
|
||||
p("Name: ")
|
||||
.fontWeight("bold")
|
||||
|
||||
p(window.profile?.name)
|
||||
p(global.profile?.name)
|
||||
})
|
||||
.gap(1, em)
|
||||
|
||||
@@ -37,8 +37,8 @@ class ProfileMenu extends Shadow {
|
||||
.center()
|
||||
.display("none")
|
||||
.onAppear(async () => {
|
||||
if(!window.profile) {
|
||||
window.profile = await this.fetchProfile()
|
||||
if(!global.profile) {
|
||||
global.profile = await this.fetchProfile()
|
||||
this.rerender()
|
||||
}
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user