Skip to content

Commit

Permalink
fix: only spawn syncxhr worker when syncxhr is enabled
Browse files Browse the repository at this point in the history
  • Loading branch information
Percslol committed Oct 15, 2024
1 parent cb3c433 commit 7233c60
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/client/shared/requests/xmlhttprequest.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ if (self.Worker) {

export default function (client: ScramjetClient, self: Self) {
let worker;
if (self.Worker) {
if (self.Worker && flagEnabled("syncxhr", client.url)) {
worker = new nativeworker(config.files.sync);
}
const ARGS = Symbol("xhr original args");
Expand Down

0 comments on commit 7233c60

Please sign in to comment.