From 4c6a2323d90e9321ec2b78e226167b3013ea69ab Mon Sep 17 00:00:00 2001 From: Wojtek Kosior Date: Sat, 29 Jan 2022 00:03:51 +0100 Subject: make Haketilo buildable again (for Mozilla) How cool it is to throw away 5755 lines of code... --- content/content.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'content/content.js') diff --git a/content/content.js b/content/content.js index feef5db..c501187 100644 --- a/content/content.js +++ b/content/content.js @@ -74,7 +74,7 @@ globalThis.haketilo_content_script_main = async function() { const policy = decide_policy(globalThis.haketilo_pattern_tree, document.URL, - globalThis.haketilo_defualt_allow, + globalThis.haketilo_default_allow, globalThis.haketilo_secret); const page_info = Object.assign({url: document.URL}, policy); ["csp", "nonce"].forEach(prop => delete page_info[prop]); @@ -93,7 +93,7 @@ globalThis.haketilo_content_script_main = async function() { resolve_page_info(Object.assign(page_info, script_response)); return; } else { - for (const script_contents of script_response) { + for (const script_contents of script_response.files) { const html_ns = "http://www.w3.org/1999/xhtml"; const script = document.createElementNS(html_ns, "script"); -- cgit v1.2.3