diff --git a/js/storage.js b/js/storage.js index 30a424c9..9c0b8b5d 100644 --- a/js/storage.js +++ b/js/storage.js @@ -24,7 +24,7 @@ put: function(key, value) { if (value === undefined) throw new Error("Tried to store undefined"); - var item = items.add({id: key, value: value}); + var item = items.add({id: key, value: value}, {merge: true}); item.save(); },