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 */ /* Low-level commands to be run from the JS console */
window.Admin = { window.Admin = {
getCurrentGame: function() { return currentGame; }, getGameId() { return $('#cb_board').data('gameId'); },
getVisibleGame: function() { return visibleGame; }, getCurrentGame() { return currentGame; },
getVisibleGame() { return visibleGame; },
setCurrentGame, setCurrentGame,
setVisibleGame, setVisibleGame,
refresh: function() { setCurrentGame(currentGame); }, refresh() { setCurrentGame(currentGame); },
renderBoard, renderBoard,
putState, putState,
putMeta, putMeta,
PS, PS,
IO, IO,
$,
}; };
/* /*