rechanged keydown with keyup to prevent requests spam

This commit is contained in:
RemixDev 2020-04-16 15:45:17 +02:00
parent aa4cc2a207
commit f094171583

View File

@ -149,7 +149,7 @@ var playlistSearch = new Vue({
}) })
// Search section // Search section
$("#searchbar").keydown(function(e){ $("#searchbar").keyup(function(e){
if(e.keyCode == 13){ if(e.keyCode == 13){
term = this.value term = this.value
if (isValidURL(term)){ if (isValidURL(term)){