summaryrefslogtreecommitdiff
path: root/html
diff options
context:
space:
mode:
authorWojtek Kosior <koszko@koszko.org>2022-01-26 22:13:01 +0100
committerWojtek Kosior <koszko@koszko.org>2022-01-26 22:13:01 +0100
commit9d825eaaa0715ee5244a09bc3d1968aa1664d048 (patch)
treef75d9306339b65e15750489e9c383cdb51212aaf /html
parent42fe44050661ed59198fb166672bfdaa119d4333 (diff)
downloadbrowser-extension-9d825eaaa0715ee5244a09bc3d1968aa1664d048.tar.gz
browser-extension-9d825eaaa0715ee5244a09bc3d1968aa1664d048.zip
add new root content script
Diffstat (limited to 'html')
-rw-r--r--html/default_blocking_policy.js2
-rw-r--r--html/popup.js4
2 files changed, 3 insertions, 3 deletions
diff --git a/html/default_blocking_policy.js b/html/default_blocking_policy.js
index 758572f..b0577f7 100644
--- a/html/default_blocking_policy.js
+++ b/html/default_blocking_policy.js
@@ -83,6 +83,6 @@ async function init_default_policy_dialog()
toggle_policy_but.addEventListener("click", toggle_policy);
}
-#IF !TEST_UNIT
+#IF !UNIT_TEST
init_default_policy_dialog();
#ENDIF
diff --git a/html/popup.js b/html/popup.js
index 1efc4b0..b4602f3 100644
--- a/html/popup.js
+++ b/html/popup.js
@@ -88,8 +88,8 @@ function show_page_info(page_info) {
var mapping = `None (scripts ${scripts_fate} by a rule)`;
else if (page_info.mapping)
var mapping = page_info.mapping;
- else
- var mapping = `None (scripts ${scripts_fate} by default policy)`;
+ else if (page_info.error)
+ var mapping = `None (error occured when determining policy)`;
by_id("mapping_used").innerText = mapping;
}
}