Skip to content

Commit

Permalink
fix: unrewrite html
Browse files Browse the repository at this point in the history
  • Loading branch information
Percslol committed Nov 16, 2024
1 parent c549291 commit cbdcc2a
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 @@ -85,7 +85,7 @@ export function unrewriteHtml(html: string) {
}

if (key.startsWith("scramjet-data-")) {
node.attribs["scramjet-data-".length] = node.attribs[key];
node.attribs[key.slice("scramjet-data-".length)] = node.attribs[key];
delete node.attribs[key];
}
}
Expand Down

0 comments on commit cbdcc2a

Please sign in to comment.