Skip to content

Commit

Permalink
[twizzle/edit] Handle puzzle changes without a refresh.
Browse files Browse the repository at this point in the history
  • Loading branch information
lgarron committed Aug 28, 2021
1 parent 334270c commit 9bb6013
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/sites/alpha.twizzle.net/edit/app.ts
Original file line number Diff line number Diff line change
Expand Up @@ -161,8 +161,7 @@ export class App {
private setPuzzle(puzzleName: string): boolean {
setURLParams({ puzzle: puzzleName });
// TODO: Handle 2D/3D transitions
// this.twistyPlayer.setPuzzle(puzzleName);
location.reload();
this.twistyPlayer.puzzle = puzzleName as PuzzleID;
this.controlPane.setPuzzle(puzzleName);
return true;
}
Expand Down

0 comments on commit 9bb6013

Please sign in to comment.