File tree 1 file changed +4
-4
lines changed
packages/rrweb/src/plugins/network/replay
1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change 1
- import { InitiatorType , NetworkData , NETWORK_PLUGIN_NAME } from '../record' ;
1
+ import { NetworkData , NETWORK_PLUGIN_NAME } from '../record' ;
2
2
import type { eventWithTime } from '@rrweb/types' ;
3
3
import { EventType } from '@rrweb/types' ;
4
4
import type { ReplayPlugin } from '../../../types' ;
5
5
6
- export type NetworkReplayer = ( data : NetworkData ) => void ;
6
+ export type OnNetworkData = ( data : NetworkData ) => void ;
7
7
8
8
export type NetworkReplayOptions = {
9
- replayer : NetworkReplayer ;
9
+ onNetworkData : OnNetworkData ;
10
10
} ;
11
11
12
12
export const getReplayNetworkPlugin : (
@@ -19,7 +19,7 @@ export const getReplayNetworkPlugin: (
19
19
event . data . plugin === NETWORK_PLUGIN_NAME
20
20
) {
21
21
const networkData = event . data . payload as NetworkData ;
22
- options . replayer ( networkData ) ;
22
+ options . onNetworkData ( networkData ) ;
23
23
}
24
24
} ,
25
25
} ;
You can’t perform that action at this time.
0 commit comments