File tree 1 file changed +4
-4
lines changed
packages/rrweb/src/plugins/network/record
1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -26,7 +26,7 @@ export type InitiatorType =
26
26
| 'xmlhttprequest' ;
27
27
28
28
type NetworkRecordOptions = {
29
- initiatorType ?: InitiatorType [ ] ;
29
+ initiatorTypes ?: InitiatorType [ ] ;
30
30
ignoreRequestFn ?: ( data : NetworkRequest ) => boolean ;
31
31
recordHeaders ?:
32
32
| boolean
@@ -46,7 +46,7 @@ type NetworkRecordOptions = {
46
46
} ;
47
47
48
48
const defaultNetworkOptions : NetworkRecordOptions = {
49
- initiatorType : [
49
+ initiatorTypes : [
50
50
'audio' ,
51
51
'beacon' ,
52
52
'body' ,
@@ -151,7 +151,7 @@ function initXhrObserver(
151
151
win : IWindow ,
152
152
options : Required < NetworkRecordOptions > ,
153
153
) : listenerHandler {
154
- if ( ! options . initiatorType . includes ( 'xmlhttprequest' ) ) {
154
+ if ( ! options . initiatorTypes . includes ( 'xmlhttprequest' ) ) {
155
155
return ( ) => {
156
156
//
157
157
} ;
@@ -166,7 +166,7 @@ function initFetchObserver(
166
166
win : IWindow ,
167
167
options : Required < NetworkRecordOptions > ,
168
168
) : listenerHandler {
169
- if ( ! options . initiatorType . includes ( 'fetch' ) ) {
169
+ if ( ! options . initiatorTypes . includes ( 'fetch' ) ) {
170
170
return ( ) => {
171
171
//
172
172
} ;
You can’t perform that action at this time.
0 commit comments