mirror of
https://github.com/ragestudio/comty.git
synced 2025-06-10 19:14:16 +00:00
remove no_session
event
This commit is contained in:
parent
7224f3dec7
commit
c030bafb8a
@ -131,9 +131,6 @@ class App extends React.Component {
|
|||||||
icon: <Icons.MdOutlineAccessTimeFilled />,
|
icon: <Icons.MdOutlineAccessTimeFilled />,
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
"no_session": async () => {
|
|
||||||
app.eventBus.emit("forceToLogin")
|
|
||||||
},
|
|
||||||
"websocket_connected": () => {
|
"websocket_connected": () => {
|
||||||
if (this.wsReconnecting) {
|
if (this.wsReconnecting) {
|
||||||
this.wsReconnectingTry = 0
|
this.wsReconnectingTry = 0
|
||||||
@ -386,7 +383,7 @@ class App extends React.Component {
|
|||||||
const token = await Session.token
|
const token = await Session.token
|
||||||
|
|
||||||
if (!token || token == null) {
|
if (!token || token == null) {
|
||||||
window.app.eventBus.emit("no_session")
|
//window.app.eventBus.emit("no_session")
|
||||||
return false
|
return false
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user