mirror of
https://github.com/MercuryWorkshop/scramjet.git
synced 2025-05-16 07:30:02 -04:00
fix: dont inject scramjet scripts when using domparser
This commit is contained in:
parent
ebf3c9c4c4
commit
ff62755fa1
1 changed files with 2 additions and 3 deletions
|
@ -264,7 +264,7 @@ export default function (client: ScramjetClient, self: typeof window) {
|
|||
ctx.args[0],
|
||||
client.cookieStore,
|
||||
client.meta,
|
||||
true
|
||||
false
|
||||
);
|
||||
}
|
||||
},
|
||||
|
@ -283,12 +283,11 @@ export default function (client: ScramjetClient, self: typeof window) {
|
|||
|
||||
client.Proxy("document.writeln", {
|
||||
apply(ctx) {
|
||||
// this injects scramjet multiple times but who gaf
|
||||
ctx.args[0] = rewriteHtml(
|
||||
ctx.args[0],
|
||||
client.cookieStore,
|
||||
client.meta,
|
||||
true
|
||||
false
|
||||
);
|
||||
},
|
||||
});
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue