Skip to content

Commit

Permalink
fix last minute change
Browse files Browse the repository at this point in the history
  • Loading branch information
samber committed Oct 15, 2022
1 parent 81695e8 commit a3e0036
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions packages/rrweb/src/record/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ import {
scrollCallback,
canvasMutationParam,
adoptedStyleSheetParam,
IWindow,
} from '../types';
import { IframeManager } from './iframe-manager';
import { ShadowDomManager } from './shadow-dom-manager';
Expand Down Expand Up @@ -71,11 +72,12 @@ function record<T = eventWithTime>(
userTriggeredOnInput = false,
collectFonts = false,
inlineImages = false,
window: win = window,
window: _win = window,
plugins,
keepIframeSrcFn = () => false,
ignoreCSSAttributes = new Set([]),
} = options;
const win = (_win as unknown) as IWindow;

// runtime checks for user options
if (!emit) {
Expand Down Expand Up @@ -251,7 +253,7 @@ function record<T = eventWithTime>(
canvasManager = new CanvasManager({
recordCanvas,
mutationCb: wrappedCanvasMutationEmit,
win: win,
win,
blockClass,
blockSelector,
mirror,
Expand Down Expand Up @@ -281,6 +283,7 @@ function record<T = eventWithTime>(
stylesheetManager,
canvasManager,
keepIframeSrcFn,
window: win,
},
mirror,
});
Expand Down

0 comments on commit a3e0036

Please sign in to comment.