added loading overlay on socket.io server connection
This commit is contained in:
@@ -1 +1,5 @@
|
||||
export const socket = io.connect(window.location.href)
|
||||
|
||||
socket.on('connect', () => {
|
||||
document.getElementById('loading_overlay').classList.remove('active')
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user