Skip to content

Commit

Permalink
Get the analysis url query in a timely manner
Browse files Browse the repository at this point in the history
  • Loading branch information
DavidNHill committed Aug 11, 2024
1 parent a257ffc commit 309c373
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion Minesweeper/client/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -271,11 +271,13 @@ async function startup() {
// set the board details
setBoardSizeOnGUI(width, height, mines);

// read the url string before it gets over written by the new game processing
const analysis = urlParams.get('analysis');

// create the playable game;
await newGame(width, height, mines, seed);
gameBoard = board;

const analysis = urlParams.get('analysis');
if (analysis != null) {
const compressor = new Compressor();

Expand Down

0 comments on commit 309c373

Please sign in to comment.