Sidebar fully functional
This commit is contained in:
14
src/index.js
14
src/index.js
@@ -140,14 +140,8 @@ let Global = class {
|
||||
}
|
||||
}
|
||||
|
||||
async onLogin() {
|
||||
if(!this.profile) {
|
||||
await this.getProfile()
|
||||
}
|
||||
await this.Socket.init()
|
||||
await this.onNavigate()
|
||||
Home()
|
||||
// navigateTo("/")
|
||||
async renderHome() {
|
||||
location.reload()
|
||||
}
|
||||
|
||||
async onLogout() {
|
||||
@@ -169,7 +163,9 @@ let Global = class {
|
||||
} else if(status === 500) {
|
||||
ConnectionError()
|
||||
} else {
|
||||
this.onLogin()
|
||||
await this.Socket.init()
|
||||
await this.onNavigate()
|
||||
Home()
|
||||
}
|
||||
})
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user