From 8b9a276f62f8ab81e06b42d8e16a40e781901e74 Mon Sep 17 00:00:00 2001 From: Percs <83934299+Percslol@users.noreply.github.com> Date: Wed, 30 Oct 2024 01:26:12 -0500 Subject: [PATCH] fix: stop proxying event attributes --- src/shared/rewriters/html.ts | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/shared/rewriters/html.ts b/src/shared/rewriters/html.ts index 82643d6..1bbdf28 100644 --- a/src/shared/rewriters/html.ts +++ b/src/shared/rewriters/html.ts @@ -218,8 +218,10 @@ function traverseParsedHtml( } } } + /* for (const [attr, value] of Object.entries(node.attribs)) { if (attr.startsWith("on")) { + console.log(`${attr}: ${value}`); node.attribs[`data-scramjet-${attr}`] = attr; node.attribs[attr] = rewriteJs( value as string, @@ -228,6 +230,7 @@ function traverseParsedHtml( ); } } + */ } if (node.name === "style" && node.children[0] !== undefined)