diff --git a/favicon.png b/favicon.png
index 0a23461..79b06a8 100644
Binary files a/favicon.png and b/favicon.png differ
diff --git a/index.html b/index.html
index 5203437..3ca78ae 100644
--- a/index.html
+++ b/index.html
@@ -6,60 +6,10 @@
prigoana.lol
-
- CS
@@ -83,18 +33,14 @@
let url = 'https://lastfm-last-played.biancarosa.com.br/yetiuard/latest-song';
let songElement = document.querySelector('#song');
let albumCoverElement = document.querySelector('#album-cover');
- fetch(url)
- .then(function (response) {
- return response.json();
- }).then(function (json) {
- songElement.innerHTML = json['track']['name'] + ' - ' + json['track']['artist']['#text'];
- let albumName = json['track']['album']['#text'];
- let albumHtml = '' + albumName + '
';
- songElement.innerHTML += albumHtml;
- let albumImageUrl = json['track']['image'][2]['#text'];
- albumCoverElement.innerHTML = '
';
+ fetch(url).then(function(response){return response.json()}).then(function(json){songElement.innerHTML=json.track.name+' - '+json.track.artist['#text'];let albumName=json.track.album['#text'];songElement.innerHTML+=''+albumName+'
';let albumImageUrl=json.track.image[2]['#text'];albumCoverElement.innerHTML='
'});
+ if ('serviceWorker' in navigator) {
+ navigator.serviceWorker.register('./service-worker.js').then(function(registration) {
+ console.log('Service Worker registered with scope:', registration.scope);
+ }).catch(function(error) {
+ console.log('Service Worker registration failed:', error);
});
+ }
-