mirror of
https://github.com/MercuryWorkshop/scramjet.git
synced 2025-05-13 14:30:02 -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 { decodeUrl } from "../shared";
|
||||
import { config, decodeUrl } from "../shared";
|
||||
import {
|
||||
encodeUrl,
|
||||
rewriteCss,
|
||||
|
@ -176,8 +176,8 @@ export default function (client: ScramjetClient, self: typeof window) {
|
|||
});
|
||||
|
||||
client.Trap("Node.prototype.ownerDocument", {
|
||||
get() {
|
||||
return client.documentProxy;
|
||||
get(ctx) {
|
||||
return self[config.rewritefn](ctx.get());
|
||||
},
|
||||
});
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue