mirror of
https://github.com/MercuryWorkshop/scramjet.git
synced 2025-05-15 07:20:02 -04:00
fix: unrewrite html
This commit is contained in:
parent
c54929198d
commit
cbdcc2ad9c
1 changed files with 1 additions and 1 deletions
|
@ -85,7 +85,7 @@ export function unrewriteHtml(html: string) {
|
||||||
}
|
}
|
||||||
|
|
||||||
if (key.startsWith("scramjet-data-")) {
|
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];
|
delete node.attribs[key];
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue