esmodules

This commit is contained in:
velzie 2024-07-17 08:06:27 -04:00
parent d433f67d67
commit 862f909624
No known key found for this signature in database
GPG key ID: 048413F95F0DDE1F
9 changed files with 141 additions and 25 deletions

View file

@ -71,7 +71,7 @@ function traverseParsedHtml(node, origin?: URL) {
let js = node.children[0].data;
const htmlcomment = /<!--[\s\S]*?-->/g;
js = js.replace(htmlcomment, "");
node.children[0].data = rewriteJs(js);
node.children[0].data = rewriteJs(js, origin);
}
if (node.name === "meta" && hasAttrib(node, "http-equiv")) {
if (node.attribs["http-equiv"] === "content-security-policy") {