mirror of
https://github.com/OliveTin/OliveTin
synced 2025-12-11 16:45:42 +00:00
chore: cleanup websocket code
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user