aboutsummaryrefslogtreecommitdiff
path: root/background
diff options
context:
space:
mode:
Diffstat (limited to 'background')
-rw-r--r--background/indexeddb_files_server.js4
-rw-r--r--background/patterns_query_manager.js2
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")