redraw puzzle UI on change

puzzle
Thibault Duplessis 2020-12-20 16:48:36 +01:00
parent eb1aaccf03
commit 0e8b894d39
1 changed files with 1 additions and 2 deletions

View File

@ -254,8 +254,7 @@ export default function(opts: PuzzleOpts, redraw: Redraw): Controller {
function nextPuzzle(): void {
ceval.stop();
vm.next.promise.then(initiate);
redraw();
vm.next.promise.then(initiate).then(redraw);
const path = `/training/${data.theme.key}`;
if (location.pathname != path) history.replaceState(null, '', path);