Added support for pasting multiple tracks directly from Spotify In reference to https://git.rip/RemixDev/deemix/-/issues/18

This commit is contained in:
RemixDev 2021-01-31 21:01:13 +01:00
parent e8ee55a1db
commit b59fbcf533
No known key found for this signature in database
GPG Key ID: B33962B465BDB51C

View File

@ -52,6 +52,7 @@ document.addEventListener('paste', pasteEvent => {
if (router.currentRoute.name === 'Link Analyzer') { if (router.currentRoute.name === 'Link Analyzer') {
socket.emit('analyzeLink', pastedText) socket.emit('analyzeLink', pastedText)
} else { } else {
if (pastedText.indexOf("\n") != -1) pastedText = pastedText.replace(/\n/g, ';');
sendAddToQueue(pastedText) sendAddToQueue(pastedText)
} }
} else { } else {