mirror of
https://github.com/MercuryWorkshop/scramjet.git
synced 2025-05-17 08:00:02 -04:00
fix some jank
This commit is contained in:
parent
4f5ae7b18a
commit
db837b42c7
5 changed files with 44 additions and 9 deletions
|
@ -1,8 +1,10 @@
|
|||
export default function (client, self) {
|
||||
// goodybye spyware~
|
||||
import { encodeUrl } from "../../../shared/rewriters/url";
|
||||
import { ScramjetClient } from "../../client";
|
||||
|
||||
export default function (client: ScramjetClient, self) {
|
||||
client.Proxy("navigator.sendBeacon", {
|
||||
apply(ctx) {
|
||||
ctx.return(true);
|
||||
ctx.args[0] = encodeUrl(ctx.args[0], client.meta);
|
||||
},
|
||||
});
|
||||
}
|
||||
|
|
|
@ -1,8 +1,9 @@
|
|||
import { config, decodeUrl, encodeUrl, rewriteHeaders } from "../../../shared";
|
||||
import { ScramjetClient } from "../../client";
|
||||
const nativeworker = Worker;
|
||||
|
||||
export default function (client: ScramjetClient, self: Self) {
|
||||
const worker = new Worker(config.sync);
|
||||
const worker = new nativeworker(config.sync);
|
||||
const ARGS = Symbol("xhr original args");
|
||||
const HEADERS = Symbol("xhr headers");
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue