summaryrefslogtreecommitdiff
path: root/background/indexeddb_files_server.js
diff options
context:
space:
mode:
authorWojtek Kosior <koszko@koszko.org>2022-02-15 13:18:59 +0100
committerWojtek Kosior <koszko@koszko.org>2022-02-15 13:18:59 +0100
commit92fc67cfa135526cef75311c3ee1a14e248c3060 (patch)
tree139aa953f29df525433001cd3b5487cb8df8f91a /background/indexeddb_files_server.js
parentcf838016b70bc55d8fb19a10b4deb580289e3769 (diff)
downloadbrowser-extension-92fc67cfa135526cef75311c3ee1a14e248c3060.tar.gz
browser-extension-92fc67cfa135526cef75311c3ee1a14e248c3060.zip
change store names and data keys to singular
Diffstat (limited to 'background/indexeddb_files_server.js')
-rw-r--r--background/indexeddb_files_server.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/background/indexeddb_files_server.js b/background/indexeddb_files_server.js
index 24fa700..c548b74 100644
--- a/background/indexeddb_files_server.js
+++ b/background/indexeddb_files_server.js
@@ -59,7 +59,7 @@ async function get_resource_files(getting, id) {
getting.defs_by_res_id.set(id, definition);
const file_proms = (definition.scripts || [])
- .map(s => haketilodb.idb_get(getting.tx, "files", s.sha256));
+ .map(s => haketilodb.idb_get(getting.tx, "file", s.sha256));
const deps_proms = (definition.dependencies || [])
.map(res_ref => get_resource_files(getting, res_ref.identifier));
@@ -104,7 +104,7 @@ async function send_resource_files(root_resource_id, send_cb) {
const getting = {
defs_by_res_id: new Map(),
files_by_res_id: new Map(),
- tx: db.transaction(["files", "resource"])
+ tx: db.transaction(["file", "resource"])
};
let prom_cbs, prom = new Promise((...cbs) => prom_cbs = cbs);