X-Git-Url: https://git.auder.net/?a=blobdiff_plain;f=client%2Fsrc%2Futils%2FimportgameStorage.js;h=46a60bbb5ef45b4e2a8626c18944067aeacd7427;hb=165530a519288327f3a6364a43f1b9e73d944a20;hp=e5ad6e22f8de741c4a3bff2f438cdb583f3034ba;hpb=5f918a278904266a2a66a3c8e2a3655f37c2d2a7;p=vchess.git diff --git a/client/src/utils/importgameStorage.js b/client/src/utils/importgameStorage.js index e5ad6e22..46a60bbb 100644 --- a/client/src/utils/importgameStorage.js +++ b/client/src/utils/importgameStorage.js @@ -47,7 +47,7 @@ export const ImportgameStorage = { }; transaction.onerror = function(err) { // Duplicate key error (most likely) - callback(err); + callback(err.target.error); }; transaction.objectStore("importgames").add(game); });