Skip to content

Commit 77455ba

Browse files
committed
fix(homeConfig): make it work on Spotify 1.2.56
1 parent 7cb5498 commit 77455ba

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

jsHelper/homeConfig.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@ SpicetifyHomeConfig = {};
9292
const main = document.querySelector(".main-home-content");
9393
elem = [...main.querySelectorAll("section")];
9494
for (const [index, item] of elem.entries()) {
95-
item.dataset.uri = list[index].uri ?? list[index].item.uri;
95+
item.dataset.uri = list[index]?.uri ?? list[index].item?.uri;
9696
}
9797

9898
function appendItems() {

0 commit comments

Comments
 (0)