fix: key value

This commit is contained in:
Percs 2024-10-31 17:14:10 -05:00
parent 4655203c05
commit a0ff5d9d90

View file

@ -85,7 +85,7 @@ export function unrewriteHtml(html: string) {
} }
if (key.startsWith("data-scramjet-")) { if (key.startsWith("data-scramjet-")) {
node.attribs[key.slice(13)] = node.attribs[key]; node.attribs["data-scramjet-".length] = node.attribs[key];
delete node.attribs[key]; delete node.attribs[key];
} }
} }