From 3cefd591c7de9aec51b9e2cfd58ec41f91ee1c73 Mon Sep 17 00:00:00 2001 From: Shashank pandey <126805929+HYDRO2070@users.noreply.github.com> Date: Wed, 31 Jan 2024 00:02:49 +0530 Subject: [PATCH] Update SpotifyScript.js --- js/SpotifyScript.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/js/SpotifyScript.js b/js/SpotifyScript.js index 3968d3d..d4f756b 100644 --- a/js/SpotifyScript.js +++ b/js/SpotifyScript.js @@ -14,7 +14,7 @@ function SectoMin(sec){ return `${formatemin}:${formatesec}`; } async function getSongs(folder){ - let songs = await fetch(`http://127.0.0.1:5500/${currFolder}/`); + let songs = await fetch(`${currFolder}/`); let a = await songs.text(); let div = document.createElement("div"); div.innerHTML = a; @@ -59,7 +59,7 @@ async function getSongs(folder){ } async function getcarddetail(){ - let request = await fetch("http://127.0.0.1:5500/Songs/"); + let request = await fetch("Songs/"); let response = await request.text(); let div = document.createElement("div"); div.innerHTML = response; @@ -175,4 +175,4 @@ async function main(){ } }) } -main() \ No newline at end of file +main()