projects
/
vchess.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Rename gameId --> id in Game.vue
[vchess.git]
/
client
/
src
/
utils
/
gameStorage.js
diff --git
a/client/src/utils/gameStorage.js
b/client/src/utils/gameStorage.js
index
dc65379
..
6b44632
100644
(file)
--- a/
client/src/utils/gameStorage.js
+++ b/
client/src/utils/gameStorage.js
@@
-1,6
+1,6
@@
// Game object: {
// // Static informations:
// Game object: {
// // Static informations:
-//
gameI
d: string
+//
i
d: string
// vname: string,
// fenStart: string,
// players: array of sid+id+name,
// vname: string,
// fenStart: string,
// players: array of sid+id+name,
@@
-39,7
+39,7
@@
function dbOperation(callback)
alert("Error while loading database: " + event.target.errorCode);
};
// Create objectStore for vchess->games
alert("Error while loading database: " + event.target.errorCode);
};
// Create objectStore for vchess->games
- let objectStore = db.createObjectStore("games", { keyPath: "
gameI
d" });
+ let objectStore = db.createObjectStore("games", { keyPath: "
i
d" });
objectStore.createIndex("score", "score"); //to search by game result
}
}
objectStore.createIndex("score", "score"); //to search by game result
}
}