mirror of
https://github.com/MercuryWorkshop/scramjet.git
synced 2025-05-14 15:00:01 -04:00
fix: key value
This commit is contained in:
parent
4655203c05
commit
a0ff5d9d90
1 changed files with 1 additions and 1 deletions
|
@ -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];
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue