Added shutdown function for app and server

This commit is contained in:
RemixDev 2020-04-11 16:24:53 +02:00
parent c8a4c5217c
commit 2c9e5d05f7
1 changed files with 6 additions and 0 deletions

View File

@ -53,6 +53,12 @@ socket.on("finishDownload", function(uuid){
$('#bar_' + uuid).css('width', '100%') $('#bar_' + uuid).css('width', '100%')
}) })
socket.on("removedAllDownloads", function(){
queue = []
queueList = {}
$("#download_list").html("")
})
socket.on("updateQueue", function(update){ socket.on("updateQueue", function(update){
if (update.uuid && queue.indexOf(update.uuid) > -1){ if (update.uuid && queue.indexOf(update.uuid) > -1){
console.log(update) console.log(update)