Skip to content

Commit 5bcf704

Browse files
author
rocketraccoon
committed
feat(save-history-mode): fix save history mode
1 parent e9131b5 commit 5bcf704

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

src/browser/history/rrweb.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ export async function installRrwebAndCollectEvents(
1313
callstack: Callstack,
1414
): Promise<eventWithTime[]> {
1515
/* eslint-disable @typescript-eslint/ban-ts-comment */
16-
return runWithoutHistory<Promise<eventWithTime[]>>({ callstack }, () =>
16+
const resultPromise = runWithoutHistory<Promise<eventWithTime[]>>({ callstack }, () =>
1717
session.execute(
1818
(rrwebRecordFnCode, serverTime) => {
1919
// @ts-expect-error
@@ -101,6 +101,9 @@ export async function installRrwebAndCollectEvents(
101101
),
102102
);
103103
/* eslint-enable @typescript-eslint/ban-ts-comment */
104+
105+
callstack.setIsInBypassMode(false);
106+
return resultPromise;
104107
}
105108

106109
export function filterEvents(rrwebEvents: eventWithTime[]): eventWithTime[] {

0 commit comments

Comments
 (0)