Skip to content

Commit 119e141

Browse files
authored
Fix typo in indexOf method for background colors
1 parent d3703a2 commit 119e141

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

apps/dailycolorclk/app.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ let changeBGColor = function() {
4444
if (settings.colorPurple) bgColors.push("#B200ED");
4545
if (settings.colorBlack) bgColors.push("#000");
4646

47-
let oldColorId = bgColors.indeOf(settings.colorSaved);
47+
let oldColorIdx = bgColors.indexOf(settings.colorSaved);
4848
if (oldColorIdx !== -1) bgColors.splice(oldColorIdx, 1);
4949
let col = bgColors[(Math.random()*bgColors.length)|0] || "#000";
5050

0 commit comments

Comments
 (0)