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 cancelGameCallback = function() {};
|
||||||
let cancelMetaCallback = function() {};
|
let cancelMetaCallback = function() {};
|
||||||
|
|
||||||
/* for debug */
|
//function debug() { console.log.apply(console, arguments); }
|
||||||
window.getCurrentGame = function() { return currentGame; }
|
function debug() {}
|
||||||
window.getVisibleGame = function() { return visibleGame; }
|
|
||||||
function debug() { console.log.apply(console, arguments); }
|
|
||||||
|
|
||||||
function pieceTypeCode(type) {
|
function pieceTypeCode(type) {
|
||||||
if (type === PS.KING) {
|
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