feat: improve natives store and proxy element.hasattribute

This commit is contained in:
Percs 2024-12-09 10:56:45 -06:00
parent f43637fed7
commit f022024291
3 changed files with 59 additions and 10 deletions

View file

@ -5,9 +5,7 @@ import { ScramjetClient } from "../../client";
export default function (client: ScramjetClient, self: Self) {
let worker;
if (self.Worker && flagEnabled("syncxhr", client.url)) {
worker = new (client.natives["Worker"] ? client.natives["Worker"] : Worker)(
config.files.sync
);
worker = new client.natives["Worker"](config.files.sync);
}
const ARGS = Symbol("xhr original args");
const HEADERS = Symbol("xhr headers");