fixed download via URL

This commit is contained in:
uh_wot 2020-04-16 14:56:27 +02:00
parent ee2f43fa56
commit 6c9869e18f

View File

@ -154,7 +154,7 @@ $("#searchbar").keyup(function(e){
term = this.value term = this.value
console.log(term) console.log(term)
if (isValidURL(term)) if (isValidURL(term))
socket.emit("addToQueue", {url: term}); sendAddToQueue(term);
else{ else{
document.getElementById("search_tab_content").style.display = "none"; document.getElementById("search_tab_content").style.display = "none";
socket.emit("mainSearch", {term: term}); socket.emit("mainSearch", {term: term});