fix youtube

This commit is contained in:
velzie 2024-08-10 00:15:51 -04:00
parent 45da8dbb9d
commit 4829cd4a23
No known key found for this signature in database
GPG key ID: 048413F95F0DDE1F

View file

@ -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());
},
});
}