X-Git-Url: https://git.auder.net/?p=vchess.git;a=blobdiff_plain;f=client%2Fsrc%2Futils%2FgameStorage.js;h=3e3b68403d4de92eb0da99a36875f6545b33bcbb;hp=6885ed15639a65b66179641bcb36d868c5ea2904;hb=937c24ab2871b31a7e531226603fc75acab7edb8;hpb=4c1fea477bb7024d1c11be7c49eecf19f6ed9800 diff --git a/client/src/utils/gameStorage.js b/client/src/utils/gameStorage.js index 6885ed15..3e3b6840 100644 --- a/client/src/utils/gameStorage.js +++ b/client/src/utils/gameStorage.js @@ -51,6 +51,7 @@ function dbOperation(callback) { } export const GameStorage = { + // Optional callback to get error status add: function(game, callback) { dbOperation((err, db) => { @@ -183,4 +184,5 @@ export const GameStorage = { } }); } + };