Skip to content

Commit

Permalink
oops
Browse files Browse the repository at this point in the history
  • Loading branch information
Percslol committed Nov 18, 2024
1 parent 7d15d84 commit 2e84592
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/shared/rewriters/html.ts
Original file line number Diff line number Diff line change
Expand Up @@ -226,7 +226,7 @@ function traverseParsedHtml(
}
for (const [attr, value] of Object.entries(node.attribs)) {
if (eventAttributes.includes(attr)) {
node.attribs[`scramjet-data-${attr}`] = attr;
node.attribs[`scramjet-data-${attr}`] = value;
node.attribs[attr] = rewriteJs(
value as string,
`(inline ${attr} on element)`,
Expand Down

0 comments on commit 2e84592

Please sign in to comment.