added loading overlay on socket.io server connection
This commit is contained in:
@@ -97,10 +97,10 @@ function startApp() {
|
||||
$('#login_input_arl').val(arl)
|
||||
}
|
||||
if ('true' === localStorage.getItem('slimDownloads')) {
|
||||
document.getElementById("download_list").classList.add("slim")
|
||||
document.getElementById('download_list').classList.add('slim')
|
||||
}
|
||||
let spotifyUser = localStorage.getItem('spotifyUser')
|
||||
if (spotifyUser != ''){
|
||||
if (spotifyUser != '') {
|
||||
socket.emit('update_userSpotifyPlaylists', spotifyUser)
|
||||
}
|
||||
// Open default tab
|
||||
|
||||
@@ -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