mirror of
https://github.com/MercuryWorkshop/scramjet.git
synced 2025-05-17 08:00:02 -04:00
feat: improve natives store and proxy element.hasattribute
This commit is contained in:
parent
f43637fed7
commit
f022024291
3 changed files with 59 additions and 10 deletions
|
@ -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");
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue