Skip to content

Commit

Permalink
Merge pull request #5570 from lostgeek/log-mode-fix
Browse files Browse the repository at this point in the history
Set log-mode back to :log when starting a new game
  • Loading branch information
jwarwick authored Feb 15, 2021
2 parents 24fe37c + 38fa04e commit 387ce00
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/cljs/nr/gameboard.cljs
Original file line number Diff line number Diff line change
Expand Up @@ -402,6 +402,7 @@
(defn init-game [state]
(let [side (get-side state)]
(.setItem js/localStorage "gameid" (:gameid @app-state))
(reset! log-mode :log)
(reset! game-state (dissoc state :replay-diffs :replay-jump-to))
(swap! game-state assoc :side side)
(reset! last-state @game-state)
Expand Down

0 comments on commit 387ce00

Please sign in to comment.