mirror of
https://github.com/MercuryWorkshop/scramjet.git
synced 2025-05-16 07:30:02 -04:00
fix: proxy element.getHTML
This commit is contained in:
parent
b5a7598465
commit
d821554f57
1 changed files with 6 additions and 0 deletions
|
@ -220,6 +220,12 @@ export default function (client: ScramjetClient, self: typeof window) {
|
||||||
},
|
},
|
||||||
});
|
});
|
||||||
|
|
||||||
|
client.Proxy("Element.prototype.getHTML", {
|
||||||
|
apply(ctx) {
|
||||||
|
ctx.return(unrewriteHtml(ctx.call()));
|
||||||
|
},
|
||||||
|
});
|
||||||
|
|
||||||
client.Proxy("Element.prototype.insertAdjacentHTML", {
|
client.Proxy("Element.prototype.insertAdjacentHTML", {
|
||||||
apply(ctx) {
|
apply(ctx) {
|
||||||
if (ctx.args[1])
|
if (ctx.args[1])
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue