mirror of
https://github.com/MercuryWorkshop/scramjet.git
synced 2025-05-13 22:40:01 -04:00
fix youtube
This commit is contained in:
parent
45da8dbb9d
commit
4829cd4a23
1 changed files with 3 additions and 3 deletions
|
@ -1,5 +1,5 @@
|
||||||
import { ScramjetClient } from "../client";
|
import { ScramjetClient } from "../client";
|
||||||
import { decodeUrl } from "../shared";
|
import { config, decodeUrl } from "../shared";
|
||||||
import {
|
import {
|
||||||
encodeUrl,
|
encodeUrl,
|
||||||
rewriteCss,
|
rewriteCss,
|
||||||
|
@ -176,8 +176,8 @@ export default function (client: ScramjetClient, self: typeof window) {
|
||||||
});
|
});
|
||||||
|
|
||||||
client.Trap("Node.prototype.ownerDocument", {
|
client.Trap("Node.prototype.ownerDocument", {
|
||||||
get() {
|
get(ctx) {
|
||||||
return client.documentProxy;
|
return self[config.rewritefn](ctx.get());
|
||||||
},
|
},
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue