Project

General

Profile

« Previous | Next » 

Revision 4c6a2323

Added by koszko over 1 year ago

make Haketilo buildable again (for Mozilla)

How cool it is to throw away 5755 lines of code...

View differences:

content/content.js
74 74

  
75 75
    const policy = decide_policy(globalThis.haketilo_pattern_tree,
76 76
				 document.URL,
77
				 globalThis.haketilo_defualt_allow,
77
				 globalThis.haketilo_default_allow,
78 78
				 globalThis.haketilo_secret);
79 79
    const page_info = Object.assign({url: document.URL}, policy);
80 80
    ["csp", "nonce"].forEach(prop => delete page_info[prop]);
......
93 93
	    resolve_page_info(Object.assign(page_info, script_response));
94 94
	    return;
95 95
	} else {
96
	    for (const script_contents of script_response) {
96
	    for (const script_contents of script_response.files) {
97 97
		const html_ns = "http://www.w3.org/1999/xhtml";
98 98
		const script = document.createElementNS(html_ns, "script");
99 99

  

Also available in: Unified diff