Skip to content

Commit

Permalink
fix: incorrectly classified xhr requests as sync
Browse files Browse the repository at this point in the history
  • Loading branch information
Percslol committed Nov 17, 2024
1 parent 9398cf7 commit a3a8eba
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/client/shared/requests/xmlhttprequest.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ export default function (client: ScramjetClient, self: Self) {
client.Proxy("XMLHttpRequest.prototype.open", {
apply(ctx) {
if (ctx.args[1]) ctx.args[1] = rewriteUrl(ctx.args[1], client.meta);
if (ctx.args[2] === undefined) ctx.args[2] = true;
ctx.this[ARGS] = ctx.args;
},
});
Expand Down

0 comments on commit a3a8eba

Please sign in to comment.