From 42280c7a9eaee4d6b077260ff2743ac3b178075d Mon Sep 17 00:00:00 2001 From: Tom Date: Fri, 29 Jul 2022 18:00:22 +0100 Subject: [PATCH 1/2] Update updateRecord.js --- src/utils/storage/fixtures/updateRecord.js | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/src/utils/storage/fixtures/updateRecord.js b/src/utils/storage/fixtures/updateRecord.js index 144fbb7..12b2723 100644 --- a/src/utils/storage/fixtures/updateRecord.js +++ b/src/utils/storage/fixtures/updateRecord.js @@ -9,7 +9,13 @@ request = objectStore.get(${storeNameKey}); request.onsuccess = () => { - objectStore.put(${storeNameKeyValue}, ${storeNameKey}) + try { + objectStore.put(${storeNameKeyValue}, ${storeNameKey}); + } catch (e) { + if (e && e.message.indexOf("in-line keys") !== -1) { + objectStore.put(${storeNameKeyValue}); + } + } }; }; })(); \ No newline at end of file From 2c0ccb9efac093c8909f92bb0477abecf7b6c234 Mon Sep 17 00:00:00 2001 From: Tom Date: Fri, 29 Jul 2022 18:02:36 +0100 Subject: [PATCH 2/2] version bump --- package.json | 2 +- public/manifest.json | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/package.json b/package.json index a16be1c..34f1d52 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "indexeddb-edit", - "version": "0.0.5", + "version": "0.0.6", "private": true, "scripts": { "build": "rollup -c", diff --git a/public/manifest.json b/public/manifest.json index 7788c4f..7595740 100644 --- a/public/manifest.json +++ b/public/manifest.json @@ -1,6 +1,6 @@ { "name": "IndexedDBEdit", - "version": "0.0.5", + "version": "0.0.6", "manifest_version": 3, "description": "Devtools panel for changing IndexedDB key values", "devtools_page": "devtools.html",