From ce83d5c71957db959c2ce157d2abf90390095bdf Mon Sep 17 00:00:00 2001 From: Alexander Popov Date: Sun, 6 Aug 2023 03:58:35 +0300 Subject: [PATCH] fixed http cors --- pages/js/lastfm-nowplay.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pages/js/lastfm-nowplay.js b/pages/js/lastfm-nowplay.js index 7f4f802..677faee 100644 --- a/pages/js/lastfm-nowplay.js +++ b/pages/js/lastfm-nowplay.js @@ -1,7 +1,7 @@ export function update_lastfm_nowplay() { let user = 'Alex_Popov'; let apikey = '5556942dcf4c422dca68d57fbbfdee23'; - let url = `http://ws.audioscrobbler.com/2.0/?method=user.getrecenttracks&user=${user}&api_key=${apikey}&format=json&limit=1`; + let url = `https://ws.audioscrobbler.com/2.0/?method=user.getrecenttracks&user=${user}&api_key=${apikey}&format=json&limit=1`; let status_text = document.getElementById('lastfm_card_title'); let song_text = document.getElementById('lastfm_card_content');