Skip to content

Commit d7db138

Browse files
committed
fix: warning from rollup
1 parent a0c721b commit d7db138

File tree

1 file changed

+3
-3
lines changed
  • packages/rrweb/src/plugins/network/record

1 file changed

+3
-3
lines changed

packages/rrweb/src/plugins/network/record/index.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -167,14 +167,14 @@ function initPerformanceObserver(
167167
};
168168
}
169169

170-
const getRequestPerformanceEntry = async (
170+
async function getRequestPerformanceEntry(
171171
win: IWindow,
172172
initiatorType: string,
173173
url: string,
174174
after?: number,
175175
before?: number,
176176
attempt = 0,
177-
): Promise<PerformanceResourceTiming> => {
177+
): Promise<PerformanceResourceTiming> {
178178
if (attempt > 10) {
179179
throw new Error('Cannot find performance entry');
180180
}
@@ -201,7 +201,7 @@ const getRequestPerformanceEntry = async (
201201
);
202202
}
203203
return performanceEntry;
204-
};
204+
}
205205

206206
function initXhrObserver(
207207
cb: networkCallback,

0 commit comments

Comments
 (0)