Skip to content

Commit

Permalink
rn initiatorTypes
Browse files Browse the repository at this point in the history
  • Loading branch information
jlalmes committed Feb 1, 2023
1 parent 1d77b6c commit f3d85e2
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions packages/rrweb/src/plugins/network/record/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ export type InitiatorType =
| 'xmlhttprequest';

type NetworkRecordOptions = {
initiatorType?: InitiatorType[];
initiatorTypes?: InitiatorType[];
ignoreRequestFn?: (data: NetworkRequest) => boolean;
recordHeaders?:
| boolean
Expand All @@ -46,7 +46,7 @@ type NetworkRecordOptions = {
};

const defaultNetworkOptions: NetworkRecordOptions = {
initiatorType: [
initiatorTypes: [
'audio',
'beacon',
'body',
Expand Down Expand Up @@ -151,7 +151,7 @@ function initXhrObserver(
win: IWindow,
options: Required<NetworkRecordOptions>,
): listenerHandler {
if (!options.initiatorType.includes('xmlhttprequest')) {
if (!options.initiatorTypes.includes('xmlhttprequest')) {
return () => {
//
};
Expand All @@ -166,7 +166,7 @@ function initFetchObserver(
win: IWindow,
options: Required<NetworkRecordOptions>,
): listenerHandler {
if (!options.initiatorType.includes('fetch')) {
if (!options.initiatorTypes.includes('fetch')) {
return () => {
//
};
Expand Down

0 comments on commit f3d85e2

Please sign in to comment.