mirror of
https://github.com/OliveTin/OliveTin
synced 2025-12-12 00:55:34 +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 () {
|
export function initWebsocket () {
|
||||||
window.addEventListener('EventOutputChunk', onOutputChunk)
|
window.addEventListener('EventOutputChunk', onOutputChunk)
|
||||||
|
|
||||||
window.checkWebsocketConnection = checkWebsocketConnection
|
|
||||||
}
|
|
||||||
|
|
||||||
export function checkWebsocketConnection () {
|
|
||||||
reconnectWebsocket()
|
reconnectWebsocket()
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -168,10 +168,6 @@ function updateHeaderFromInit() {
|
|||||||
|
|
||||||
renderSidebar()
|
renderSidebar()
|
||||||
|
|
||||||
if (window.checkWebsocketConnection) {
|
|
||||||
window.checkWebsocketConnection()
|
|
||||||
}
|
|
||||||
|
|
||||||
if (window.initResponse.loginRequired) {
|
if (window.initResponse.loginRequired) {
|
||||||
router.push('/login')
|
router.push('/login')
|
||||||
return
|
return
|
||||||
|
|||||||
Reference in New Issue
Block a user