diff --git a/public/board.js b/public/board.js index a1383b6..b397e43 100644 --- a/public/board.js +++ b/public/board.js @@ -802,6 +802,9 @@ class Board{ // Run board commands here for testing let board = new Board; +// Await DB promise for decks before loading the game +requestGetCards(); // TODO: Make actually wait for the DB response before continuing... + // Fill each players deck with their cards createDecks(); diff --git a/public/index.html b/public/index.html index 8cc583f..265c1de 100644 --- a/public/index.html +++ b/public/index.html @@ -56,11 +56,16 @@ +