Skip to content

Commit 91d0db0

Browse files
authored
Merge pull request #1114 from gemini-testing/users/rocketraccoon/TESTPLANE-593.save-history-mode
Fix save history mode
2 parents 5cff0bc + cd1325a commit 91d0db0

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)