diff options
author | Wojtek Kosior <koszko@koszko.org> | 2022-01-29 00:03:51 +0100 |
---|---|---|
committer | Wojtek Kosior <koszko@koszko.org> | 2022-01-29 00:04:44 +0100 |
commit | 4c6a2323d90e9321ec2b78e226167b3013ea69ab (patch) | |
tree | 682ab3abd53a68d28d04f0470766699dcadd7294 /content/content.js | |
parent | ea9df6c7688613783ca114f0f11c6f6baf30036b (diff) | |
download | browser-extension-4c6a2323d90e9321ec2b78e226167b3013ea69ab.tar.gz browser-extension-4c6a2323d90e9321ec2b78e226167b3013ea69ab.zip |
make Haketilo buildable again (for Mozilla)
How cool it is to throw away 5755 lines of code...
Diffstat (limited to 'content/content.js')
-rw-r--r-- | content/content.js | 4 |
1 files changed, 2 insertions, 2 deletions
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"); |