disable debug output & add some items to the Admin object
This commit is contained in:
parent
ec1a2bd1fd
commit
0c983c1d70
|
|
@ -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,
|
||||
};
|
||||
});
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue