let objectStore = db
.transaction("compgames", "readwrite")
.objectStore("compgames");
let objectStore = db
.transaction("compgames", "readwrite")
.objectStore("compgames");
// Retrieve any game from its identifier (variant name)
// NOTE: need callback because result is obtained asynchronously
get: function(gameId, callback) {
// Retrieve any game from its identifier (variant name)
// NOTE: need callback because result is obtained asynchronously
get: function(gameId, callback) {
let objectStore = db
.transaction("compgames", "readonly")
.objectStore("compgames");
let objectStore = db
.transaction("compgames", "readonly")
.objectStore("compgames");
if (!err) {
db.transaction("compgames", "readwrite")
.objectStore("compgames")
if (!err) {
db.transaction("compgames", "readwrite")
.objectStore("compgames")