From 91bc8c8bdd2fb983a4780a0156528cc178391598 Mon Sep 17 00:00:00 2001 From: cutls Date: Wed, 12 Aug 2020 10:01:14 +0900 Subject: [PATCH] WIP #317 last.fm --- app/js/ui/spotify.js | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/app/js/ui/spotify.js b/app/js/ui/spotify.js index a091a74e..1586b9ea 100644 --- a/app/js/ui/spotify.js +++ b/app/js/ui/spotify.js @@ -32,7 +32,7 @@ function spotifyDisconnect() { console.error(error) }) .then(function (json) { - if(!json.success) alert('error') + if (!json.success) alert('error') localStorage.removeItem('spotify-token') checkSpotify() }) @@ -188,9 +188,8 @@ function nowplaying(mode) { var item = json.recenttracks.track[0] if (!item['@attr']) return false var img = item.image[3]['#text'] - var isImg = item.streamable * 1 var flag = localStorage.getItem('artwork') - if (flag && isImg && img) { + if (flag && img != 'https://lastfm.freetls.fastly.net/i/u/300x300/2a96cbd8b46e442fc41c2b86b821562f.png' && img) { postMessage(['bmpImage', [img, 0]], '*') } var content = localStorage.getItem('np-temp')