diff options
Diffstat (limited to 'html')
-rw-r--r-- | html/default_blocking_policy.js | 2 | ||||
-rw-r--r-- | html/popup.js | 4 |
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; } } |