chore: cleanup websocket code
This commit is contained in:
parent
00d7285167
commit
167e700e30
|
|
@ -3,10 +3,6 @@ import { buttonResults } from '../resources/vue/stores/buttonResults.js'
|
|||
export function initWebsocket () {
|
||||
window.addEventListener('EventOutputChunk', onOutputChunk)
|
||||
|
||||
window.checkWebsocketConnection = checkWebsocketConnection
|
||||
}
|
||||
|
||||
export function checkWebsocketConnection () {
|
||||
reconnectWebsocket()
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -168,10 +168,6 @@ function updateHeaderFromInit() {
|
|||
|
||||
renderSidebar()
|
||||
|
||||
if (window.checkWebsocketConnection) {
|
||||
window.checkWebsocketConnection()
|
||||
}
|
||||
|
||||
if (window.initResponse.loginRequired) {
|
||||
router.push('/login')
|
||||
return
|
||||
|
|
|
|||
Loading…
Reference in New Issue