aboutsummaryrefslogtreecommitdiff
path: root/background
diff options
context:
space:
mode:
authorWojtek Kosior <koszko@koszko.org>2022-01-22 13:49:40 +0100
committerWojtek Kosior <koszko@koszko.org>2022-01-22 13:49:40 +0100
commit7218849ae2f43aee6b3462a30e07caf5bac3d22b (patch)
tree3de3b31c07e532edf7373faf4a267f313dc2ed25 /background
parent046b8a7b3e7259bf451926732e6221076b1d4153 (diff)
downloadbrowser-extension-7218849ae2f43aee6b3462a30e07caf5bac3d22b.tar.gz
browser-extension-7218849ae2f43aee6b3462a30e07caf5bac3d22b.zip
add a mapping/resources installation dialog
Diffstat (limited to 'background')
-rw-r--r--background/CORS_bypass_server.js2
-rw-r--r--background/patterns_query_manager.js2
2 files changed, 2 insertions, 2 deletions
diff --git a/background/CORS_bypass_server.js b/background/CORS_bypass_server.js
index 664100b..9805d41 100644
--- a/background/CORS_bypass_server.js
+++ b/background/CORS_bypass_server.js
@@ -48,7 +48,7 @@ async function get_prop(object, prop, result_object, call_prop=false) {
try {
result_object[prop] = call_prop ? (await object[prop]()) : object[prop];
} catch(e) {
- result_object[`error-${prop}`] = "" + e;
+ result_object[`error_${prop}`] = "" + e;
}
}
diff --git a/background/patterns_query_manager.js b/background/patterns_query_manager.js
index 8b563ef..78cd0ef 100644
--- a/background/patterns_query_manager.js
+++ b/background/patterns_query_manager.js
@@ -144,7 +144,7 @@ async function start(secret_)
secret = secret_;
const [mapping_tracking, initial_mappings] =
- await haketilodb.track.mappings(ch => changed("mappings", ch));
+ await haketilodb.track.mapping(ch => changed("mappings", ch));
const [blocking_tracking, initial_blocking] =
await haketilodb.track.blocking(ch => changed("blocking", ch));