Fixed inverted if.
This commit is contained in:
parent
d58c7945a7
commit
76ef04125f
2 changed files with 2 additions and 1 deletions
|
@ -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;
|
||||||
|
|
|
@ -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
|
||||||
|
|
Loading…
Reference in a new issue