diff options
author | Wojtek Kosior <koszko@koszko.org> | 2022-02-15 13:18:59 +0100 |
---|---|---|
committer | Wojtek Kosior <koszko@koszko.org> | 2022-02-15 13:18:59 +0100 |
commit | 92fc67cfa135526cef75311c3ee1a14e248c3060 (patch) | |
tree | 139aa953f29df525433001cd3b5487cb8df8f91a /background | |
parent | cf838016b70bc55d8fb19a10b4deb580289e3769 (diff) | |
download | browser-extension-92fc67cfa135526cef75311c3ee1a14e248c3060.tar.gz browser-extension-92fc67cfa135526cef75311c3ee1a14e248c3060.zip |
change store names and data keys to singular
Diffstat (limited to 'background')
-rw-r--r-- | background/indexeddb_files_server.js | 4 | ||||
-rw-r--r-- | background/patterns_query_manager.js | 2 |
2 files changed, 3 insertions, 3 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); diff --git a/background/patterns_query_manager.js b/background/patterns_query_manager.js index d3c659a..863fbe9 100644 --- a/background/patterns_query_manager.js +++ b/background/patterns_query_manager.js @@ -160,7 +160,7 @@ async function start(secret_) { initial_blocking.forEach(b => register("blocking", b)); const [setting_tracking, initial_settings] = - await haketilodb.track.settings(setting_changed); + await haketilodb.track.setting(setting_changed); for (const setting of initial_settings) { if (setting.name === "default_allow") |