fixed http cors

This commit is contained in:
Alexander Popov 2023-08-06 03:58:35 +03:00
parent 5be5ee5e40
commit ce83d5c719

View File

@ -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');