add getGameId() and $ (jQuery) to the Admin object

This commit is contained in:
Jesse D. McDonald 2020-05-09 10:30:46 -05:00
parent aee33bf30e
commit c2dbd6267c
1 changed files with 5 additions and 3 deletions

View File

@ -1201,16 +1201,18 @@ $(function (){
/* Low-level commands to be run from the JS console */
window.Admin = {
getCurrentGame: function() { return currentGame; },
getVisibleGame: function() { return visibleGame; },
getGameId() { return $('#cb_board').data('gameId'); },
getCurrentGame() { return currentGame; },
getVisibleGame() { return visibleGame; },
setCurrentGame,
setVisibleGame,
refresh: function() { setCurrentGame(currentGame); },
refresh() { setCurrentGame(currentGame); },
renderBoard,
putState,
putMeta,
PS,
IO,
$,
};
/*