Skip to content

Commit

Permalink
Apply formatting changes
Browse files Browse the repository at this point in the history
  • Loading branch information
mydea authored and github-actions[bot] committed Dec 19, 2023
1 parent c4cf0fd commit 9d3f35f
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 16 deletions.
2 changes: 1 addition & 1 deletion packages/rrweb-worker/src/_image-bitmap-data-url-worker.ts
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ async function getTransparentBlobFor(
height: number,
dataURLOptions: DataURLOptions,
): Promise<string> {
const id = width + '-' + height;
const id = width + '-' + height;
if ('OffscreenCanvas' in globalThis) {
if (transparentBlobMap.has(id)) return transparentBlobMap.get(id)!;
const offscreen = new OffscreenCanvas(width, height);
Expand Down
2 changes: 1 addition & 1 deletion packages/rrweb-worker/src/image-bitmap-data-url-worker.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
// This is replaced at build-time with the content from _image-bitmap-data-url-worker.ts, wrapped as a string.
// This is just a placeholder so that types etc. are correct.
export default ('' as string);
export default '' as string;
28 changes: 14 additions & 14 deletions packages/rrweb/src/record/observers/canvas/canvas-manager.ts
Original file line number Diff line number Diff line change
Expand Up @@ -118,20 +118,20 @@ export class CanvasManager implements CanvasManagerInterface {
unblockSelector,
);
if (recordCanvas && typeof sampling === 'number')
try {
this.initCanvasFPSObserver(
sampling,
win,
blockClass,
blockSelector,
unblockSelector,
{
dataURLOptions,
},
);
} catch {
// Error when initializing canvas...
}
try {
this.initCanvasFPSObserver(
sampling,
win,
blockClass,
blockSelector,
unblockSelector,
{
dataURLOptions,
},
);
} catch {
// Error when initializing canvas...
}
}

private processMutation: canvasManagerMutationCallback = (
Expand Down

0 comments on commit 9d3f35f

Please sign in to comment.