Implemented changes to work with lib 1.0.23

This commit is contained in:
RemixDev 2020-06-19 11:10:47 +02:00
parent d55cc8ce84
commit 5314f7c07e
2 changed files with 4 additions and 9 deletions

File diff suppressed because one or more lines are too long

View File

@ -98,12 +98,7 @@ function handleDrag(event) {
} }
function sendAddToQueue(url, bitrate = null) { function sendAddToQueue(url, bitrate = null) {
if (url.indexOf(';') !== -1) { if (url != '') {
let urls = url.split(';')
urls.forEach(url => {
socket.emit('addToQueue', { url: url, bitrate: bitrate })
})
} else if (url != '') {
socket.emit('addToQueue', { url: url, bitrate: bitrate }) socket.emit('addToQueue', { url: url, bitrate: bitrate })
} }
} }