fix(replay/ios): fix ios network display
This commit is contained in:
parent
14e4bb6600
commit
89102e3208
2 changed files with 7 additions and 1 deletions
|
|
@ -17,7 +17,11 @@ function FetchDetailsModal(props: Props) {
|
|||
const [resource, setResource] = useState(props.resource);
|
||||
const [first, setFirst] = useState(false);
|
||||
const [last, setLast] = useState(false);
|
||||
const isXHR = resource.type === ResourceType.XHR || resource.type === ResourceType.FETCH
|
||||
|
||||
const isXHR = resource.type === ResourceType.XHR
|
||||
|| resource.type === ResourceType.FETCH
|
||||
|| resource.type === ResourceType.IOS
|
||||
|
||||
const {
|
||||
sessionStore: { devTools },
|
||||
settingsStore: { sessionSettings: { timezone }},
|
||||
|
|
@ -46,6 +50,7 @@ function FetchDetailsModal(props: Props) {
|
|||
}
|
||||
};
|
||||
|
||||
|
||||
return (
|
||||
<div className="bg-white p-5 h-screen overflow-y-auto" style={{ width: '500px' }}>
|
||||
<h5 className="mb-2 text-2xl">Network Request</h5>
|
||||
|
|
|
|||
|
|
@ -3,6 +3,7 @@ import type {ResourceTiming, NetworkRequest, Fetch, IosNetworkCall} from '../mes
|
|||
export const enum ResourceType {
|
||||
XHR = 'xhr',
|
||||
FETCH = 'fetch',
|
||||
IOS = 'request',
|
||||
BEACON = 'beacon',
|
||||
SCRIPT = 'script',
|
||||
CSS = 'css',
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue