Skip to content
This repository was archived by the owner on Nov 1, 2022. It is now read-only.

increment requestId in send, not patchXHR #13

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

alunny-stripe
Copy link

Updating requestId in patchXMLHTTPRequest's scope means it's only incremented once (at the time the polyfill is installed). Instead, it should be incremented in the send function call, which is executed for every XHR on the page.

Updating `requestId` in `patchXMLHTTPRequest`'s scope means it's only incremented once (at the time the polyfill is installed). Instead, it should be incremented in the `send` function call, which is executed for every XHR on the page.
@sod
Copy link

sod commented Jul 24, 2019

fixes #16

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants