Skip to content

Commit ebaad33

Browse files
committed
fixed comment on line 210
1 parent 36ffd7b commit ebaad33

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

frontend/src/components/menu/index.tsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -207,7 +207,8 @@ function MenuBar(props: MenuBarProps) {
207207
alert('Canvas area not found.');
208208
return;
209209
}
210-
// Use promise chain so handler remains synchronous for the menu component
210+
// The promise chain ensures the handler executes synchronously within the menu component.
211+
211212
html2canvas(container as HTMLElement, { backgroundColor: null })
212213
.then((canvas: HTMLCanvasElement) => {
213214
const url = canvas.toDataURL('image/png');

0 commit comments

Comments
 (0)