diff --git a/js/main.js b/js/main.js index 11ad1f0..bf486be 100644 --- a/js/main.js +++ b/js/main.js @@ -28,8 +28,8 @@ function calcBackground() { var period = (24 / backgroundList.length) * 60; // in minutes - var background = backgroundList[Math.floor(total / period)]; - setBackground(background.address, background.dark); + var index = Math.floor(total / period); + setBackground(index); } }