diff --git a/game.js b/game.js index ba54b7d..ce35f0d 100644 --- a/game.js +++ b/game.js @@ -118,7 +118,7 @@ Returns the timeout id - but you still need to cancel it through stopTimer! */ function startTimer(config) { const timeout = setTimeout(() => { - const result = config.func(state, config); + const result = config.func(config); refresh(); // the timer may have terminated itself!