mirror of
https://github.com/ragestudio/comty.git
synced 2025-06-09 18:44: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 />,
|
||||
})
|
||||
},
|
||||
"no_session": async () => {
|
||||
app.eventBus.emit("forceToLogin")
|
||||
},
|
||||
"websocket_connected": () => {
|
||||
if (this.wsReconnecting) {
|
||||
this.wsReconnectingTry = 0
|
||||
@ -386,7 +383,7 @@ class App extends React.Component {
|
||||
const token = await Session.token
|
||||
|
||||
if (!token || token == null) {
|
||||
window.app.eventBus.emit("no_session")
|
||||
//window.app.eventBus.emit("no_session")
|
||||
return false
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user