From c2dbd6267c350ea7723995c53c008415c45630ef Mon Sep 17 00:00:00 2001 From: Jesse McDonald Date: Sat, 9 May 2020 10:30:46 -0500 Subject: [PATCH] add getGameId() and $ (jQuery) to the Admin object --- js/pacosako_ui.js | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) 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, + $, }; /*