Skip to content

Commit

Permalink
idb-keyval: bits
Browse files Browse the repository at this point in the history
  • Loading branch information
enricoros committed May 17, 2024
1 parent 127443d commit 811875d
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/common/util/idbUtils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -207,8 +207,8 @@ function deleteValue(dbName, key) {
// Example usage:
const myNewJsonString = '{"your": "new json string"}'; // Replace with your desired JSON string
setValue('keyval-store', 'app-chats', myNewJsonString).then(console.log).catch(console.error);
copyValue('keyval-store', 'app-chats', 'app-chats-copy').then(console.log).catch(console.error);
deleteValue('keyval-store', 'app-chats-prev').then(console.log).catch(console.error);
await setValue('keyval-store', 'app-chats', myNewJsonString);
await copyValue('keyval-store', 'app-chats', 'app-chats-copy');
await deleteValue('keyval-store', 'app-chats-prev');
*/

0 comments on commit 811875d

Please sign in to comment.