diff --git a/js/pacosako_ui.js b/js/pacosako_ui.js index 8da350d..1b7af96 100644 --- a/js/pacosako_ui.js +++ b/js/pacosako_ui.js @@ -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, + $, }; /*