Skip to content

Commit 4f5410b

Browse files
authored
fix: delayIfNecessary in XHR in chrome (#170)
1 parent 0bb0017 commit 4f5410b

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

bundle/bundle.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

lib/build/xmlhttprequest.js

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

lib/ts/xmlhttprequest.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,8 +44,8 @@ const XHR_EVENTS = [
4444
] as const;
4545

4646
export function addInterceptorsToXMLHttpRequest() {
47-
let firstEventLoopDone = true;
48-
setTimeout(() => (firstEventLoopDone = false), 0);
47+
let firstEventLoopDone = false;
48+
setTimeout(() => (firstEventLoopDone = true), 0);
4949

5050
const oldXMLHttpRequest = XMLHttpRequest;
5151
logDebugMessage("addInterceptorsToXMLHttpRequest called");

0 commit comments

Comments
 (0)