Skip to content

Commit 6e3add9

Browse files
fix: improve event.target event.currentTarget
1 parent 096d33f commit 6e3add9

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/interceptor/xml-http-request.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -364,8 +364,8 @@ export default class XMLHttpRequestInterceptor extends Base {
364364
private event(type: string): Event {
365365
return {
366366
type,
367-
target: this.xhr,
368-
currentTarget: this.xhr,
367+
target: this,
368+
currentTarget: this,
369369
eventPhase: 0,
370370
bubbles: false,
371371
cancelable: false,

0 commit comments

Comments
 (0)