은승우

Update app.js

Showing 1 changed file with 3 additions and 3 deletions
......@@ -109,10 +109,10 @@ async function handleEvent(event) {
}
text.replace('\n','');
/*if(text.length>20)
if(text.length>20)
{
text=text.substring(8,20);
}*/
text=text.substring(text.length/6,text.length/4);
}
console.log(text);
var url="https://www.genie.co.kr/search/searchLyrics?query="+ encodeURI(text);
request(url, function(error, response, html){
......