Skip to content

Commit

Permalink
define takeFullSnapshot before use in iframeManager constructor to pr…
Browse files Browse the repository at this point in the history
…event undefined error
  • Loading branch information
megboehlert committed May 14, 2024
1 parent 168e606 commit 930f9d8
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions packages/rrweb/src/record/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -41,8 +41,7 @@ import {
} from './error-handler';

let wrappedEmit!: (e: eventWithoutTime, isCheckout?: boolean) => void;

let takeFullSnapshot!: (isCheckout?: boolean) => void;
let takeFullSnapshot!: (isCheckout?: boolean) => void = () => { /* no-op */ };
let canvasManager!: CanvasManager;
let recording = false;

Expand Down

0 comments on commit 930f9d8

Please sign in to comment.