We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d3703a2 commit 119e141Copy full SHA for 119e141
apps/dailycolorclk/app.js
@@ -44,7 +44,7 @@ let changeBGColor = function() {
44
if (settings.colorPurple) bgColors.push("#B200ED");
45
if (settings.colorBlack) bgColors.push("#000");
46
47
- let oldColorId = bgColors.indeOf(settings.colorSaved);
+ let oldColorIdx = bgColors.indexOf(settings.colorSaved);
48
if (oldColorIdx !== -1) bgColors.splice(oldColorIdx, 1);
49
let col = bgColors[(Math.random()*bgColors.length)|0] || "#000";
50
0 commit comments