은승우

Update app.js

Showing 1 changed file with 2 additions and 1 deletions
......@@ -105,8 +105,9 @@ async function handleEvent(event) {
{
jsonResponse=jsonResponse.substring(jsonResponse.indexOf('text\\')+9);
text+=jsonResponse.substring(0,jsonResponse.indexOf("\\"))+" ";
console.log("text:"+text);
}
console.log("text:"+text);
var url="https://www.genie.co.kr/search/searchLyrics?query="+ encodeURI(text);
console.log(url);
request(url, function(error, response, html){
......