Fixed inverted if.

This commit is contained in:
flash 2024-04-24 14:52:11 +00:00
parent d58c7945a7
commit 76ef04125f
2 changed files with 2 additions and 1 deletions

View file

@ -54,7 +54,7 @@ const MakaiDevIndex = npInterval => {
const updateIndexNowListening = () => { const updateIndexNowListening = () => {
getNowListening(info => { getNowListening(info => {
if(!indexLastNp || indexLastNp.url != info.url || indexLastNp.now_playing != info.now_playing) { if(!indexLastNp || indexLastNp.url != info.url || indexLastNp.now_playing != info.now_playing) {
if(!indexLastNp) if(indexLastNp)
originalHeaderBackground = getRandomHeaderBackground(); originalHeaderBackground = getRandomHeaderBackground();
indexLastNp = info; indexLastNp = info;
} else return; } else return;

View file

@ -1,3 +1,4 @@
#include elem.js
#include ascii.js #include ascii.js
#include dev-index.js #include dev-index.js
#include dev-home.js #include dev-home.js