Skip to content

Commit

Permalink
re-throw in callback wrapper
Browse files Browse the repository at this point in the history
  • Loading branch information
mydea committed Dec 20, 2023
1 parent 48310f8 commit 0ee7397
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions packages/rrweb/src/record/observers/canvas/canvas-manager.ts
Original file line number Diff line number Diff line change
Expand Up @@ -272,8 +272,10 @@ export class CanvasManager implements CanvasManagerInterface {
[bitmap],
);
})
.catch(() => {
// noop
.catch((error) => {
callbackWrapper(() => {
throw error;
})();
});
});
rafId = requestAnimationFrame(takeCanvasSnapshots);
Expand Down

0 comments on commit 0ee7397

Please sign in to comment.