mirror of
https://github.com/MercuryWorkshop/scramjet.git
synced 2025-05-14 06:50:01 -04:00
fix: only spawn syncxhr worker when syncxhr is enabled
This commit is contained in:
parent
cb3c433b69
commit
7233c60ac0
1 changed files with 1 additions and 1 deletions
|
@ -11,7 +11,7 @@ if (self.Worker) {
|
||||||
|
|
||||||
export default function (client: ScramjetClient, self: Self) {
|
export default function (client: ScramjetClient, self: Self) {
|
||||||
let worker;
|
let worker;
|
||||||
if (self.Worker) {
|
if (self.Worker && flagEnabled("syncxhr", client.url)) {
|
||||||
worker = new nativeworker(config.files.sync);
|
worker = new nativeworker(config.files.sync);
|
||||||
}
|
}
|
||||||
const ARGS = Symbol("xhr original args");
|
const ARGS = Symbol("xhr original args");
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue