Add self.WASM to types.d.ts, and silence no-unused-vars, since it collides with the typescript counterpart in eslint.

This commit is contained in:
wearrrrr 2024-07-15 17:57:50 -05:00
parent f9ad33069e
commit a4a2a78252
4 changed files with 6 additions and 5 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, origin);
node.children[0].data = rewriteJs(js);
}
if (node.name === "meta" && hasAttrib(node, "http-equiv")) {
if (node.attribs["http-equiv"] === "content-security-policy") {