File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed
packages/rrweb/src/plugins/network/replay Expand file tree Collapse file tree 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' ;
22import type { eventWithTime } from '@rrweb/types' ;
33import { EventType } from '@rrweb/types' ;
44import type { ReplayPlugin } from '../../../types' ;
55
6- export type NetworkReplayer = ( data : NetworkData ) => void ;
6+ export type OnNetworkData = ( data : NetworkData ) => void ;
77
88export type NetworkReplayOptions = {
9- replayer : NetworkReplayer ;
9+ onNetworkData : OnNetworkData ;
1010} ;
1111
1212export const getReplayNetworkPlugin : (
@@ -19,7 +19,7 @@ export const getReplayNetworkPlugin: (
1919 event . data . plugin === NETWORK_PLUGIN_NAME
2020 ) {
2121 const networkData = event . data . payload as NetworkData ;
22- options . replayer ( networkData ) ;
22+ options . onNetworkData ( networkData ) ;
2323 }
2424 } ,
2525 } ;
You can’t perform that action at this time.
0 commit comments