We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a0c721b commit d7db138Copy full SHA for d7db138
packages/rrweb/src/plugins/network/record/index.ts
@@ -167,14 +167,14 @@ function initPerformanceObserver(
167
};
168
}
169
170
-const getRequestPerformanceEntry = async (
+async function getRequestPerformanceEntry(
171
win: IWindow,
172
initiatorType: string,
173
url: string,
174
after?: number,
175
before?: number,
176
attempt = 0,
177
-): Promise<PerformanceResourceTiming> => {
+): Promise<PerformanceResourceTiming> {
178
if (attempt > 10) {
179
throw new Error('Cannot find performance entry');
180
@@ -201,7 +201,7 @@ const getRequestPerformanceEntry = async (
201
);
202
203
return performanceEntry;
204
-};
+}
205
206
function initXhrObserver(
207
cb: networkCallback,
0 commit comments