}
export const ImportgameStorage = {
+
// Optional callback to get error status
add: function(game, callback) {
dbOperation((err, db) => {
};
transaction.onerror = function(err) {
// Duplicate key error (most likely)
- callback(err);
+ callback(err.target.error);
};
transaction.objectStore("importgames").add(game);
});
}
});
}
+
};