update: function(gameId, obj) {
if (Number.isInteger(gameId) || !isNaN(parseInt(gameId))) {
// corr: only move, fen and score
+console.log(obj.move);
ajax("/games", "PUT", {
gid: gameId,
newObj: {
},
// Retrieve all local games (running, completed, imported...)
- // light: do not retrieve moves or players or clocks (TODO: this is the only usage)
+ // light: do not retrieve moves or clocks (TODO: this is the only usage)
getAll: function(light, callback) {
dbOperation((err,db) => {
let objectStore = db.transaction("games").objectStore("games");
delete g.moves;
delete g.clocks;
delete g.initime;
- delete g.players;
}
games.push(g);
cursor.continue();