disable debug output & add some items to the Admin object

This commit is contained in:
Jesse D. McDonald 2020-03-22 23:57:26 -05:00
parent ec1a2bd1fd
commit 0c983c1d70
1 changed files with 13 additions and 4 deletions

View File

@ -12,10 +12,8 @@ $(function (){
let cancelGameCallback = function() {};
let cancelMetaCallback = function() {};
/* for debug */
window.getCurrentGame = function() { return currentGame; }
window.getVisibleGame = function() { return visibleGame; }
function debug() { console.log.apply(console, arguments); }
//function debug() { console.log.apply(console, arguments); }
function debug() {}
function pieceTypeCode(type) {
if (type === PS.KING) {
@ -849,6 +847,17 @@ $(function (){
});
});
},
getCurrentGame: function() { return currentGame; },
getVisibleGame: function() { return visibleGame; },
setCurrentGame: function(game) { setCurrentBoard(game) },
setVisibleGame: function(game) { visibleGame = game; renderBoard(); },
refresh: function() { setCurrentBoard(currentGame); },
renderBoard: renderBoard,
putState: putState,
putMeta: putMeta,
gun: gun,
PacoSakoUUID: PacoSakoUUID,
};
});