Skip to content

Commit

Permalink
Fix linter issue
Browse files Browse the repository at this point in the history
  • Loading branch information
zk-phi committed Sep 25, 2024
1 parent f68d58e commit 26d3451
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/utils/emoji.ts
Original file line number Diff line number Diff line change
Expand Up @@ -74,10 +74,10 @@ function renderFrameUncut(
if (noCrop) {
// copy webgl canvas to a 2d canvas, with background
const result = cropCanvas(canvas, 0, 0, targetWidth * 2, targetHeight * 2, fillStyle);
const ctx = result.getContext("2d")!;
ctx.rect(targetWidth / 2, targetHeight / 2, targetWidth, targetHeight);
ctx.strokeStyle = "#8888";
ctx.stroke();
const resultCtx = result.getContext("2d")!;
resultCtx.rect(targetWidth / 2, targetHeight / 2, targetWidth, targetHeight);
resultCtx.strokeStyle = "#8888";
resultCtx.stroke();
return result;
} else {
return cropCanvas(
Expand Down

0 comments on commit 26d3451

Please sign in to comment.