added loading overlay on socket.io server connection

This commit is contained in:
Roberto Tonino
2020-05-05 22:27:37 +02:00
parent 1087d0ee0c
commit 53878a440a
6 changed files with 80 additions and 2 deletions

View File

@@ -1 +1,5 @@
export const socket = io.connect(window.location.href)
socket.on('connect', () => {
document.getElementById('loading_overlay').classList.remove('active')
})