From 92fc67cfa135526cef75311c3ee1a14e248c3060 Mon Sep 17 00:00:00 2001 From: Wojtek Kosior Date: Tue, 15 Feb 2022 13:18:59 +0100 Subject: change store names and data keys to singular --- background/indexeddb_files_server.js | 4 ++-- background/patterns_query_manager.js | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) (limited to 'background') 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") -- cgit v1.2.3