From c27cdfb79ba3dbbaad5ba0795430da2b94c0570c Mon Sep 17 00:00:00 2001
From: ni3gup <47684651+ni3gup@users.noreply.github.com>
Date: Thu, 13 Feb 2020 21:53:09 +0530
Subject: [PATCH] updated getLyrics() method to fix lyrics not found issue
---
lyrics-search/script.js | 14 ++++++++++----
1 file changed, 10 insertions(+), 4 deletions(-)
diff --git a/lyrics-search/script.js b/lyrics-search/script.js
index a4b66cc3..c150086a 100644
--- a/lyrics-search/script.js
+++ b/lyrics-search/script.js
@@ -59,10 +59,16 @@ async function getLyrics(artist, songTitle) {
const res = await fetch(`${apiURL}/v1/${artist}/${songTitle}`);
const data = await res.json();
- const lyrics = data.lyrics.replace(/(\r\n|\r|\n)/g, '
');
-
- result.innerHTML = `